From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [perf-tools-next:tmp.perf-tools-next 63/112] ./linux/mm.h:112:21: error: conflicting types for 'kmalloc'; have 'void *(unsigned int, unsigned int)'
Date: Fri, 25 Sep 2026 03:27:00 +0200 [thread overview]
Message-ID: <202609250359.tPKYrQbd-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence bisect report"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Ian Rogers <irogers@google.com>
CC: Arnaldo Carvalho de Melo <acme@redhat.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git tmp.perf-tools-next
head: fcf1fccdc9d5d7fe463c6c1869c9af6edbdd59eb
commit: 63394d06643ae1a094bc1af832d9710d7318f1b3 [63/112] perf test: Isolate test suite from user .perfconfig natively
:::::: branch date: 2 hours ago
:::::: commit date: 6 days ago
config: powerpc64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260925/202609250359.tPKYrQbd-lkp@intel.com/config)
compiler: powerpc64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260925/202609250359.tPKYrQbd-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202609250359.tPKYrQbd-lkp@intel.com/
Note: the perf-tools-next/tmp.perf-tools-next HEAD fcf1fccdc9d5d7fe463c6c1869c9af6edbdd59eb builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from ./linux/scatterlist.h:7,
from scatterlist.c:9:
../../include/linux/bug.h:9:9: warning: "BUILD_BUG_ON_ZERO" redefined
9 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
| ^~~~~~~~~~~~~~~~~
In file included from ../../include/linux/bits.h:30,
from ../../include/linux/gfp_types.h:5,
from ../../include/linux/gfp.h:6,
from ../../include/linux/slab.h:6,
from scatterlist.c:8:
../../include/linux/build_bug.h:16:9: note: this is the location of the previous definition
16 | #define BUILD_BUG_ON_ZERO(e, ...) \
| ^~~~~~~~~~~~~~~~~
In file included from ./linux/scatterlist.h:8:
./linux/mm.h:13:9: warning: "unlikely" redefined
13 | #define unlikely
| ^~~~~~~~
In file included from ../../include/linux/build_bug.h:5:
../../include/linux/compiler.h:154:10: note: this is the location of the previous definition
154 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^~~~~~~~
./linux/mm.h:33:9: warning: "__ALIGN_KERNEL" redefined
33 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
| ^~~~~~~~~~~~~~
In file included from ../../include/vdso/const.h:5,
from ../../include/vdso/bits.h:5,
from ../../include/linux/bits.h:5:
../../include/uapi/linux/const.h:48:9: note: this is the location of the previous definition
48 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1)
| ^~~~~~~~~~~~~~
./linux/mm.h:62:9: warning: "__PASTE" redefined
62 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~
../../include/linux/compiler.h:243:9: note: this is the location of the previous definition
243 | #define __PASTE(a, b) ___PASTE(a, b)
| ^~~~~~~
>> ./linux/mm.h:112:21: error: conflicting types for 'kmalloc'; have 'void *(unsigned int, unsigned int)'
112 | static inline void *kmalloc(unsigned int size, unsigned int flags)
| ^~~~~~~
../../include/linux/slab.h:33:7: note: previous declaration of 'kmalloc' with type 'void *(size_t, gfp_t)' {aka 'void *(long unsigned int, gfp_t)'}
33 | void *kmalloc(size_t size, gfp_t gfp);
| ^~~~~~~
>> ./linux/mm.h:118:1: error: conflicting types for 'kmalloc_array'; have 'void *(unsigned int, unsigned int, unsigned int)'
118 | kmalloc_array(unsigned int n, unsigned int size, unsigned int flags)
| ^~~~~~~~~~~~~
../../include/linux/slab.h:35:7: note: previous declaration of 'kmalloc_array' with type 'void *(size_t, size_t, gfp_t)' {aka 'void *(long unsigned int, long unsigned int, gfp_t)'}
35 | void *kmalloc_array(size_t n, size_t size, gfp_t gfp);
| ^~~~~~~~~~~~~
./linux/scatterlist.h: In function 'sg_set_page':
./linux/scatterlist.h:161:9: error: implicit declaration of function 'VM_WARN_ON_ONCE'; did you mean 'WARN_ON_ONCE'? [-Wimplicit-function-declaration]
161 | VM_WARN_ON_ONCE(!page_range_contiguous(page, ALIGN(len + offset, PAGE_SIZE) / PAGE_SIZE));
| ^~~~~~~~~~~~~~~
| WARN_ON_ONCE
./linux/scatterlist.h:161:26: error: implicit declaration of function 'page_range_contiguous' [-Wimplicit-function-declaration]
161 | VM_WARN_ON_ONCE(!page_range_contiguous(page, ALIGN(len + offset, PAGE_SIZE) / PAGE_SIZE));
| ^~~~~~~~~~~~~~~~~~~~~
./linux/scatterlist.h: At top level:
./linux/scatterlist.h:181:64: warning: 'struct folio' declared inside parameter list will not be visible outside of this definition or declaration
181 | static inline void sg_set_folio(struct scatterlist *sg, struct folio *folio,
| ^~~~~
./linux/scatterlist.h: In function 'sg_set_folio':
./linux/scatterlist.h:186:34: error: invalid use of undefined type 'struct folio'
186 | sg_assign_page(sg, &folio->page);
| ^~
./linux/scatterlist.h: In function 'sg_page_iter_page':
./linux/scatterlist.h:606:35: error: invalid use of undefined type 'struct page'
606 | return sg_page(piter->sg) + piter->sg_pgoffset;
| ^
scatterlist.c: At top level:
scatterlist.c:12:10: fatal error: linux/bvec.h: No such file or directory
12 | #include <linux/bvec.h>
| ^~~~~~~~~~~~~~
compilation terminated.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-09-25 1:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202609250359.tPKYrQbd-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.