Linux-Next discussions
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Vlastimil Babka <vbabka@suse.cz>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: linux-next: build failure in final build
Date: Mon, 15 Jun 2026 15:43:26 +0100	[thread overview]
Message-ID: <ajAPjq6j3hjx7dBz@sirena.org.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 4182 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2026-06-15 14:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-15 14:43 Mark Brown [this message]
2026-06-15 16:21 ` linux-next: build failure in final build Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2026-05-18 16:21 Mark Brown
2026-05-18 19:24 ` Nathan Chancellor
2026-05-18 20:06   ` Linus Torvalds
2026-04-01 14:07 Mark Brown
2026-03-27 22:01 Mark Brown
2026-03-27 22:03 ` Mark Brown
2026-03-27 22:05 ` Mark Brown
2026-03-28  2:18 ` Steven Rostedt
2026-03-26 16:04 Mark Brown
2026-03-26 17:05 ` Danilo Krummrich
2026-01-19 22:30 Mark Brown
2026-01-19 22:37 ` Miguel Ojeda
2026-01-19 23:32   ` Mark Brown
2026-01-19 22:49 ` Danilo Krummrich
2026-01-20  8:36   ` Alice Ryhl
2026-01-20 10:01     ` Danilo Krummrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ajAPjq6j3hjx7dBz@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox