[REGRESSION] next/master: (build) passing argument 1 of ‘__do_kmalloc_node’ makes pointer from in teg...
KernelCI bot <[email protected]>
| Newsgroups | dev.linux.lists.regressions,org.kernel.vger.linux-next |
|---|---|
| Message-ID | <178153914312.15282.16457445640645228189@330cfa3079ca> |
Hello, New build issue found on next/master: --- passing argument 1 of ‘__do_kmalloc_node’ makes pointer from integer without a cast [-Wint-conversion] in mm/slub.o (mm/slub.c) [logspec:kbuild,kbuild.compiler.error] --- - dashboard: https://d.kernelci.org/i/maestro:54c89979f71a499b7aae008163ebb25cc99f6565 - giturl: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git - commit HEAD: 700f8f17ac2c84f94b7cf4420f306a23a5ddfd24 Please include the KernelCI tag when submitting a fix: Reported-by: kernelci.org bot <[email protected]> Log excerpt: ===================================================== mm/slub.c:5552:42: error: passing argument 1 of ‘__do_kmalloc_node’ makes pointer from integer without a cast [-Wint-conversion] 5552 | return __do_kmalloc_node(size, NULL, flags, node, | ^~~~ | | | size_t {aka long unsigned int} mm/slub.c:5340:39: note: expected ‘struct kmem_cache * (*)[14]’ but argument is of type ‘size_t’ {aka ‘long unsigned int’} 5340 | void *__do_kmalloc_node(kmem_buckets *b, gfp_t flags, int node, | ~~~~~~~~~~~~~~^ In file included from ./include/uapi/linux/posix_types.h:5, from ./include/uapi/linux/types.h:14, from ./include/linux/types.h:5, from ./include/linux/kasan-checks.h:5, from ./include/asm-generic/rwonce.h:26, from ./arch/arm64/include/asm/rwonce.h:81, from ./include/linux/compiler.h:369, from ./include/asm-generic/bug.h:5, from ./arch/arm64/include/asm/bug.h:26, from ./include/linux/bug.h:5, from ./include/linux/mmdebug.h:5, from ./include/linux/mm.h:7, from mm/slub.c:15: ./include/linux/stddef.h:8:14: error: passing argument 2 of ‘__do_kmalloc_node’ makes integer from pointer without a cast [-Wint-conversion] 8 | #define NULL ((void *)0) | ^~~~~~~~~~~ | | | void * mm/slub.c:5552:48: note: in expansion of macro ‘NULL’ 5552 | return __do_kmalloc_node(size, NULL, flags, node, | ^~~~ mm/slub.c:5340:48: note: expected ‘gfp_t’ {aka ‘unsigned int’} but argument is of type ‘void *’ 5340 | void *__do_kmalloc_node(kmem_buckets *b, gfp_t flags, int node, | ~~~~~~^~~~~ mm/slub.c:5552:61: error: incompatible type for argument 4 of ‘__do_kmalloc_node’ 5552 | return __do_kmalloc_node(size, NULL, flags, node, | ^~~~ | | | int mm/slub.c:5341:41: note: expected ‘kmalloc_token_t’ but argument is of type ‘int’ 5341 | kmalloc_token_t token, struct slab_alloc_context *ac) | ~~~~~~~~~~~~~~~~^~~~~ In file included from ./include/linux/mm.h:34: ./include/linux/slab.h:520:41: error: incompatible type for argument 5 of ‘__do_kmalloc_node’ 520 | #define PASS_TOKEN_PARAM(_token) ((kmalloc_token_t){}) | ^~~~~~~~~~~~~~~~~~~~~ | | | kmalloc_token_t mm/slub.c:5553:33: note: in expansion of macro ‘PASS_TOKEN_PARAM’ 5553 | PASS_TOKEN_PARAM(token), &ac); | ^~~~~~~~~~~~~~~~ mm/slub.c:5341:75: note: expected ‘struct slab_alloc_context *’ but argument is of type ‘kmalloc_token_t’ 5341 | kmalloc_token_t token, struct slab_alloc_context *ac) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ mm/slub.c:5552:24: error: too many arguments to function ‘__do_kmalloc_node’ 5552 | return __do_kmalloc_node(size, NULL, flags, node, | ^~~~~~~~~~~~~~~~~ mm/slub.c:5340:7: note: declared here 5340 | void *__do_kmalloc_node(kmem_buckets *b, gfp_t flags, int node, | ^~~~~~~~~~~~~~~~~ CC lib/sys_info.o mm/slub.c:5558:1: error: control reaches end of non-void function [-Werror=return-type] 5558 | } | ^ cc1: some warnings being treated as errors CC arch/arm64/kvm/hyp/nvhe/../pgtable.nvhe.o ===================================================== # Builds where the incident occurred: ## 32r2el_defconfig on (mips): - compiler: gcc-14 - config: https://files.kernelci.org/kbuild-gcc-14-mips-build-only-6a301bb2a1ade4ad5d1095a7/.config - dashboard: https://d.kernelci.org/build/maestro:6a301bb2a1ade4ad5d1095a7 ## 32r2el_defconfig+allnoconfig on (mips): - compiler: gcc-14 - config: https://files.kernelci.org/kbuild-gcc-14-mips-allnoconfig-6a301baea1ade4ad5d10946c/.config - dashboard: https://d.kernelci.org/build/maestro:6a301baea1ade4ad5d10946c ## allnoconfig on (i386): - compiler: gcc-14 - config: https://files.kernelci.org/kbuild-gcc-14-i386-allnoconfig-6a301b9ea1ade4ad5d10944b/.config - dashboard: https://d.kernelci.org/build/maestro:6a301b9ea1ade4ad5d10944b ## defconfig on (riscv): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301bbaa1ade4ad5d1095b7 ## defconfig+allnoconfig+lab-setup+kselftest on (arm64): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301b62a1ade4ad5d108f4a ## defconfig+arm64-chromebook+CONFIG_RANDOMIZE_BASE=y on (arm64): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301b74a1ade4ad5d10938b ## defconfig+kcidebug+x86-board on (i386): - compiler: gcc-14 - config: https://files.kernelci.org/kbuild-gcc-14-x86-kcidebug-6a301bcba1ade4ad5d1095ca/.config - dashboard: https://d.kernelci.org/build/maestro:6a301bcba1ade4ad5d1095ca ## defconfig+lab-setup+arm64-chromebook+CONFIG_MODULE_COMPRESS=n+CONFIG_MODULE_COMPRESS_NONE=y on (arm64): - compiler: gcc-14 - config: https://files.kernelci.org/kbuild-gcc-14-arm64-chromebook-6a301af9a1ade4ad5d108d3f/.config - dashboard: https://d.kernelci.org/build/maestro:6a301af9a1ade4ad5d108d3f ## i386_defconfig on (i386): - compiler: gcc-14 - config: https://files.kernelci.org/kbuild-gcc-14-i386-build-only-6a301ba2a1ade4ad5d10944e/.config - dashboard: https://d.kernelci.org/build/maestro:6a301ba2a1ade4ad5d10944e ## multi_v7_defconfig+allnoconfig on (arm): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301b35a1ade4ad5d108e29 ## multi_v7_defconfig+CONFIG_CPU_BIG_ENDIAN=y on (arm): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301b39a1ade4ad5d108e3b ## multi_v7_defconfig+CONFIG_EFI=y+CONFIG_ARM_LPAE=y on (arm): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301b41a1ade4ad5d108e7a ## multi_v7_defconfig+CONFIG_THUMB2_KERNEL=y on (arm): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301b45a1ade4ad5d108e7d ## multi_v7_defconfig+kselftest on (arm): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301b4da1ade4ad5d108e8b ## x86_64_defconfig+allnoconfig+x86-board on (x86_64): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301bd8a1ade4ad5d1095d3 ## x86_64_defconfig+aws-ec2 on (x86_64): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301bc3a1ade4ad5d1095bd ## x86_64_defconfig+kselftest+x86-board on (x86_64): - compiler: gcc-14 - config: None - dashboard: https://d.kernelci.org/build/maestro:6a301bd4a1ade4ad5d1095d0 #kernelci issue maestro:54c89979f71a499b7aae008163ebb25cc99f6565 -- This is an experimental report format. Please send feedback in! Talk to us at [email protected] Made with love by the KernelCI team - https://kernelci.org