tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 1f6ce8392d6ff486af5ca96df9ded5882c4b6977 commit: cc7335787e73348bb173dda3c17ecc7adc78d8d5 [9057/9385] mm/slab: decouple ARCH_KMALLOC_MINALIGN from ARCH_DMA_MINALIGN config: microblaze-buildonly-randconfig-r002-20230612 (https://download.01.org/0day-ci/archive/20230614/202306140347.S9nJS3Al-lkp@xxxxxxxxx/config) compiler: microblaze-linux-gcc (GCC) 12.3.0 reproduce (this is a W=1 build): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=cc7335787e73348bb173dda3c17ecc7adc78d8d5 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout cc7335787e73348bb173dda3c17ecc7adc78d8d5 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=microblaze olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=microblaze prepare 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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202306140347.S9nJS3Al-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): In file included from include/linux/shm.h:6, from include/linux/sched.h:16, from arch/microblaze/kernel/asm-offsets.c:13: >> arch/microblaze/include/asm/page.h:34: warning: "ARCH_DMA_MINALIGN" redefined 34 | #define ARCH_DMA_MINALIGN L1_CACHE_BYTES | In file included from include/linux/debug_locks.h:6, from include/linux/mutex.h:21, from include/linux/rhashtable-types.h:14, from include/linux/ipc.h:7, from include/uapi/linux/sem.h:5, from include/linux/sem.h:5, from include/linux/sched.h:15: include/linux/cache.h:104: note: this is the location of the previous definition 104 | #define ARCH_DMA_MINALIGN __alignof__(unsigned long long) | -- In file included from include/linux/shm.h:6, from include/linux/sched.h:16, from include/linux/ptrace.h:6, from include/uapi/asm-generic/bpf_perf_event.h:4, from ./arch/microblaze/include/generated/uapi/asm/bpf_perf_event.h:1, from include/uapi/linux/bpf_perf_event.h:11, from kernel/bpf/btf.c:6: >> arch/microblaze/include/asm/page.h:34: warning: "ARCH_DMA_MINALIGN" redefined 34 | #define ARCH_DMA_MINALIGN L1_CACHE_BYTES | In file included from include/linux/debug_locks.h:6, from include/linux/mutex.h:21, from include/linux/rhashtable-types.h:14, from include/linux/ipc.h:7, from include/uapi/linux/sem.h:5, from include/linux/sem.h:5, from include/linux/sched.h:15: include/linux/cache.h:104: note: this is the location of the previous definition 104 | #define ARCH_DMA_MINALIGN __alignof__(unsigned long long) | kernel/bpf/btf.c: In function 'btf_seq_show': kernel/bpf/btf.c:7071:29: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 7071 | seq_vprintf((struct seq_file *)show->target, fmt, args); | ^~~~~~~~ kernel/bpf/btf.c: In function 'btf_snprintf_show': kernel/bpf/btf.c:7108:9: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 7108 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args); | ^~~ -- In file included from include/linux/mm_types_task.h:16, from include/linux/mm_types.h:5, from include/linux/bpf.h:16, from include/linux/filter.h:9, from kernel/bpf/core.c:21: >> arch/microblaze/include/asm/page.h:34: warning: "ARCH_DMA_MINALIGN" redefined 34 | #define ARCH_DMA_MINALIGN L1_CACHE_BYTES | In file included from include/linux/time.h:5, from include/linux/ktime.h:24, from include/linux/timer.h:6, from include/linux/workqueue.h:9, from include/linux/bpf.h:10: include/linux/cache.h:104: note: this is the location of the previous definition 104 | #define ARCH_DMA_MINALIGN __alignof__(unsigned long long) | kernel/bpf/core.c:1638:12: warning: no previous prototype for 'bpf_probe_read_kernel' [-Wmissing-prototypes] 1638 | u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr) | ^~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/shm.h:6, from include/linux/sched.h:16, from arch/microblaze/kernel/asm-offsets.c:13: >> arch/microblaze/include/asm/page.h:34: warning: "ARCH_DMA_MINALIGN" redefined 34 | #define ARCH_DMA_MINALIGN L1_CACHE_BYTES | In file included from include/linux/debug_locks.h:6, from include/linux/mutex.h:21, from include/linux/rhashtable-types.h:14, from include/linux/ipc.h:7, from include/uapi/linux/sem.h:5, from include/linux/sem.h:5, from include/linux/sched.h:15: include/linux/cache.h:104: note: this is the location of the previous definition 104 | #define ARCH_DMA_MINALIGN __alignof__(unsigned long long) | vim +/ARCH_DMA_MINALIGN +34 arch/microblaze/include/asm/page.h 4b87d7a4f91d31 Michal Simek 2009-03-27 32 de925d9d3b6439 Michal Simek 2010-04-26 33 /* MS be sure that SLAB allocates aligned objects */ a6eb9fe105d5de FUJITA Tomonori 2010-08-10 @34 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES de925d9d3b6439 Michal Simek 2010-04-26 35 :::::: The code at line 34 was first introduced by commit :::::: a6eb9fe105d5de0053b261148cee56c94b4720ca dma-mapping: rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN :::::: TO: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki