* [linux-next:master 9057/9385] arch/microblaze/include/asm/page.h:34: warning: "ARCH_DMA_MINALIGN" redefined
@ 2023-06-13 19:31 kernel test robot
2023-06-13 19:51 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-06-13 19:31 UTC (permalink / raw)
To: Catalin Marinas
Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton
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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306140347.S9nJS3Al-lkp@intel.com/
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@lab.ntt.co.jp>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-next:master 9057/9385] arch/microblaze/include/asm/page.h:34: warning: "ARCH_DMA_MINALIGN" redefined
2023-06-13 19:31 [linux-next:master 9057/9385] arch/microblaze/include/asm/page.h:34: warning: "ARCH_DMA_MINALIGN" redefined kernel test robot
@ 2023-06-13 19:51 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2023-06-13 19:51 UTC (permalink / raw)
To: kernel test robot
Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton
On Wed, Jun 14, 2023 at 03:31:16AM +0800, kernel test robot wrote:
> 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
It should be fixed by this series (picked up by Andrew a few minutes
ago):
https://lore.kernel.org/r/20230613155245.1228274-1-catalin.marinas@arm.com
Thanks for the report.
--
Catalin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-13 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-13 19:31 [linux-next:master 9057/9385] arch/microblaze/include/asm/page.h:34: warning: "ARCH_DMA_MINALIGN" redefined kernel test robot
2023-06-13 19:51 ` Catalin Marinas
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.