./linux/mm.h:113:21: error: conflicting types for 'kmalloc'; have 'void *(unsigned int, unsigned int)'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild |
|---|---|
| Message-ID | <[email protected]> |
:::::: :::::: Manual check reason: "low confidence bisect report" :::::: BCC: [email protected] CC: [email protected] CC: [email protected] TO: Sean Christopherson <[email protected]> CC: Thomas Gleixner <[email protected]> CC: Mathieu Desnoyers <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53 commit: a001cd248ab244633c5fabe4f7c707e13fc1d1cc rseq/selftests: Use weak symbol reference, not definition, to link with glibc date: 10 months ago :::::: branch date: 4 hours ago :::::: commit date: 10 months ago config: powerpc64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260707/[email protected]/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/20260707/[email protected]/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 | Fixes: a001cd248ab2 ("rseq/selftests: Use weak symbol reference, not definition, to link with glibc") | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/ 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/../../../include/linux/gfp_types.h:5, from ../../include/linux/gfp_types.h:1, 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:150:10: note: this is the location of the previous definition 150 | # 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:63:9: warning: "__PASTE" redefined 63 | #define __PASTE(a,b) ___PASTE(a,b) | ^~~~~~~ ../../include/linux/compiler.h:239:9: note: this is the location of the previous definition 239 | #define __PASTE(a, b) ___PASTE(a, b) | ^~~~~~~ >> ./linux/mm.h:113:21: error: conflicting types for 'kmalloc'; have 'void *(unsigned int, unsigned int)' 113 | static inline void *kmalloc(unsigned int size, unsigned int flags) | ^~~~~~~ ../../include/linux/slab.h:13:7: note: previous declaration of 'kmalloc' with type 'void *(size_t, gfp_t)' {aka 'void *(long unsigned int, gfp_t)'} 13 | void *kmalloc(size_t size, gfp_t gfp); | ^~~~~~~ >> ./linux/mm.h:119:1: error: conflicting types for 'kmalloc_array'; have 'void *(unsigned int, unsigned int, unsigned int)' 119 | kmalloc_array(unsigned int n, unsigned int size, unsigned int flags) | ^~~~~~~~~~~~~ ../../include/linux/slab.h:15: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)'} 15 | void *kmalloc_array(size_t n, size_t size, gfp_t gfp); | ^~~~~~~~~~~~~ ./linux/scatterlist.h:180:64: warning: 'struct folio' declared inside parameter list will not be visible outside of this definition or declaration 180 | static inline void sg_set_folio(struct scatterlist *sg, struct folio *folio, | ^~~~~ ./linux/scatterlist.h: In function 'sg_set_folio': >> ./linux/scatterlist.h:185:34: error: invalid use of undefined type 'struct folio' 185 | sg_assign_page(sg, &folio->page); | ^~ 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