[REGRESSION] next/master: (build) passing argument 1 of '__do_kmalloc_node' makes pointer from integ...
KernelCI bot <[email protected]>
| Newsgroups | dev.linux.lists.regressions,org.kernel.vger.linux-next |
|---|---|
| Message-ID | <178153914414.15282.5994241043459847090@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.warning] --- - dashboard: https://d.kernelci.org/i/maestro:88b7de4573d3ff7942d5e1c391739d0d3854fe51 - 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: warning: 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 unsigned int} mm/slub.c:5340:39: note: expected 'struct kmem_cache * (*)[15]' but argument is of type 'size_t' {aka '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/arc/include/generated/asm/rwonce.h:1, from ./include/linux/compiler.h:369, from ./arch/arc/include/asm/ptrace.h:11, from ./arch/arc/include/asm/bug.h:11, 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: warning: 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/zlib_inflate/inflate_syms.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 ===================================================== # Builds where the incident occurred: ## haps_hs_smp_defconfig on (arc): - compiler: gcc-14 - config: https://files.kernelci.org/kbuild-gcc-14-arc-haps_hs_smp_defconfig-6a301b2ca1ade4ad5d108e15/.config - dashboard: https://d.kernelci.org/build/maestro:6a301b2ca1ade4ad5d108e15 #kernelci issue maestro:88b7de4573d3ff7942d5e1c391739d0d3854fe51 -- 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