tree:
git://git.infradead.org/users/hch/misc.git um-set_fs
head: f2ca804e5394b7fc0a45a9393aa32a8c1d168b8a
commit: f2ca804e5394b7fc0a45a9393aa32a8c1d168b8a [1/1] um: remove set_fs
config: um-allmodconfig
(
https://download.01.org/0day-ci/archive/20211214/202112141117.d5JONEvS-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc um-set_fs
git checkout f2ca804e5394b7fc0a45a9393aa32a8c1d168b8a
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SHELL=/bin/bash drivers/infiniband/hw/qib/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_types.h:11: warning: "PAGE_SIZE" redefined
11 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:60,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/page.h:14: note: this is the location of the previous definition
14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_types.h:36: warning: "PAGE_OFFSET" redefined
36 | #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:60,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/page.h:93: note: this is the location of the previous definition
93 | #define PAGE_OFFSET (uml_physmem)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_types.h:38: warning: "VM_DATA_DEFAULT_FLAGS"
redefined
38 | #define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_TSK_EXEC
|
In file included from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1509,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
include/linux/mm.h:382: note: this is the location of the previous definition
382 | #define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_EXEC
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_64_types.h:15: warning: "THREAD_SIZE_ORDER"
redefined
15 | #define THREAD_SIZE_ORDER (2 + KASAN_STACK_ORDER)
|
In file included from include/linux/thread_info.h:60,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/thread_info.h:9: note: this is the location of the previous
definition
9 | #define THREAD_SIZE_ORDER CONFIG_KERNEL_STACK_ORDER
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_64_types.h:16: warning: "THREAD_SIZE" redefined
16 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
In file included from include/linux/thread_info.h:60,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/thread_info.h:10: note: this is the location of the previous
definition
10 | #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE)
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
> arch/x86/include/asm/page_64_types.h:64: warning:
"TASK_SIZE_MAX" redefined
64 | #define TASK_SIZE_MAX
task_size_max()
|
In file included from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:717,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1509,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
include/linux/uaccess.h:37: note: this is the location of the previous definition
37 | #define TASK_SIZE_MAX TASK_SIZE
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_64_types.h:75: warning: "TASK_SIZE" redefined
75 | #define TASK_SIZE (test_thread_flag(TIF_ADDR32) ? \
|
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/mutex.h:19,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/processor-generic.h:73: note: this is the location of the previous
definition
73 | #define TASK_SIZE (task_size)
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_64_types.h:77: warning: "TASK_SIZE_OF" redefined
77 | #define TASK_SIZE_OF(child) ((test_tsk_thread_flag(child, TIF_ADDR32)) ? \
|
In file included from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/pci.h:37,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
include/linux/sched.h:2170: note: this is the location of the previous definition
2170 | #define TASK_SIZE_OF(tsk) TASK_SIZE
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_64_types.h:80: warning: "STACK_TOP" redefined
80 | #define STACK_TOP TASK_SIZE_LOW
|
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/mutex.h:19,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/processor-generic.h:81: note: this is the location of the previous
definition
81 | #define STACK_TOP (TASK_SIZE - 2 * PAGE_SIZE)
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_64_types.h:81: warning: "STACK_TOP_MAX" redefined
81 | #define STACK_TOP_MAX TASK_SIZE_MAX
|
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/mutex.h:19,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/processor-generic.h:82: note: this is the location of the previous
definition
82 | #define STACK_TOP_MAX STACK_TOP
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_types.h:47: warning: "IOREMAP_MAX_ORDER" redefined
47 | #define IOREMAP_MAX_ORDER (PUD_SHIFT)
|
In file included from include/asm-generic/io.h:911,
from arch/um/include/asm/io.h:24,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from arch/um/include/asm/hardirq.h:5,
from include/linux/hardirq.h:11,
vim +/TASK_SIZE_MAX +64 arch/x86/include/asm/page_64_types.h
51c78eb3f0eb033 Jeremy Fitzhardinge 2009-02-08 63
025768a966a3dde Linus Torvalds 2021-05-04 @64 #define
TASK_SIZE_MAX task_size_max()
999c83e8ffd90ca Christoph Hellwig 2020-09-03 65 #define DEFAULT_MAP_WINDOW ((1UL
<< 47) - PAGE_SIZE)
999c83e8ffd90ca Christoph Hellwig 2020-09-03 66
:::::: The code at line 64 was first introduced by commit
:::::: 025768a966a3dde8455de46d1f121a51bacb6a77 x86/cpu: Use alternative to generate the
TASK_SIZE_MAX constant
:::::: TO: Linus Torvalds <torvalds(a)linux-foundation.org>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org