linux-next: build failure in final build
From: Mark Brown
Date: Mon Jun 15 2026 - 10:53:23 EST
Hi all,
In the final build (x86_64 allnoconfig) failed like this:
/tmp/next/build/mm/slub.c: In function '__kmalloc_flags_noprof':
/tmp/next/build/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}
/tmp/next/build/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 /tmp/next/build/include/uapi/linux/posix_types.h:5,
from /tmp/next/build/include/uapi/linux/types.h:14,
from /tmp/next/build/include/linux/types.h:5,
from /tmp/next/build/include/linux/kasan-checks.h:5,
from /tmp/next/build/include/asm-generic/rwonce.h:26,
from /tmp/next/build/arch/arm64/include/asm/rwonce.h:81,
from /tmp/next/build/include/linux/compiler.h:369,
from /tmp/next/build/include/asm-generic/bug.h:5,
from /tmp/next/build/arch/arm64/include/asm/bug.h:26,
from /tmp/next/build/include/linux/bug.h:5,
from /tmp/next/build/include/linux/mmdebug.h:5,
from /tmp/next/build/include/linux/mm.h:7,
from /tmp/next/build/mm/slub.c:15:
/tmp/next/build/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 *
/tmp/next/build/mm/slub.c:5552:48: note: in expansion of macro 'NULL'
5552 | return __do_kmalloc_node(size, NULL, flags, node,
| ^~~~
/tmp/next/build/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,
| ~~~~~~^~~~~
/tmp/next/build/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
/tmp/next/build/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 /tmp/next/build/include/linux/mm.h:34:
/tmp/next/build/include/linux/slab.h:512:41: error: incompatible type
for argument 5 of '__do_kmalloc_node'
512 | #define PASS_TOKEN_PARAM(_token) (_token)
| ^~~~~~~~ | kmalloc_token_t
/tmp/next/build/mm/slub.c:5553:33: note: in expansion of macro
'PASS_TOKEN_PARAM'
5553 | PASS_TOKEN_PARAM(token), &ac);
| ^~~~~~~~~~~~~~~~
/tmp/next/build/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)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/tmp/next/build/mm/slub.c:5552:24: error: too many arguments to function
'__do_kmalloc_node'
5552 | return __do_kmalloc_node(size, NULL, flags, node,
| ^~~~~~~~~~~~~~~~~
/tmp/next/build/mm/slub.c:5340:7: note: declared here
5340 | void *__do_kmalloc_node(kmem_buckets *b, gfp_t flags, int node,
| ^~~~~~~~~~~~~~~~~
/tmp/next/build/mm/slub.c:5558:1: error: control reaches end of non-void
function [-Werror=return-type]
5558 | }
| ^
I have ignored this for today.
Attachment:
signature.asc
Description: PGP signature