* [alibaba-cloud:linux-next 11097/11102] include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
@ 2020-04-28 9:32 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-28 9:32 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 8063 bytes --]
tree: https://github.com/alibaba/cloud-kernel.git linux-next
head: 34e80779976780a7de3a79606ed73f634b1d2efc
commit: 965d75d3785caa2649d44c99d85e95d715d70bd3 [11097/11102] alinux: cpuacct: make cpuacct record nr_migrations
config: s390-randconfig-a001-20200428 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 965d75d3785caa2649d44c99d85e95d715d70bd3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
kernel/sched/cpuacct.c:80:6: error: redefinition of 'task_ca_increase_nr_migrations'
80 | void task_ca_increase_nr_migrations(struct task_struct *tsk)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from kernel/sched/cpuacct.c:8:
kernel/sched/sched.h:2285:20: note: previous definition of 'task_ca_increase_nr_migrations' was here
2285 | static inline void task_ca_increase_nr_migrations(struct task_struct *tsk) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/percpu.h:7,
from arch/s390/include/asm/percpu.h:184,
from include/linux/percpu.h:13,
from include/linux/hrtimer.h:22,
from include/linux/sched.h:20,
from kernel/sched/sched.h:5,
from kernel/sched/cpuacct.c:8:
kernel/sched/cpuacct.c: In function 'task_ca_increase_nr_migrations':
kernel/sched/cpuacct.c:86:17: error: 'struct cpuacct' has no member named 'alistats'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~
include/linux/percpu-defs.h:221:47: note: in definition of macro '__verify_pcpu_ptr'
221 | const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
| ^~~
include/linux/percpu-defs.h:254:27: note: in expansion of macro 'raw_cpu_ptr'
254 | #define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
| ^~~~~~~~~~~
kernel/sched/cpuacct.c:86:2: note: in expansion of macro 'this_cpu_ptr'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~~~~~~~~~~~
In file included from include/linux/compiler_types.h:64,
from <command-line>:
kernel/sched/cpuacct.c:86:17: error: 'struct cpuacct' has no member named 'alistats'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~
include/linux/compiler-gcc.h:57:34: note: in definition of macro 'RELOC_HIDE'
57 | __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
| ^~~
>> include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
>> include/linux/percpu-defs.h:244:2: note: in expansion of macro 'arch_raw_cpu_ptr'
244 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:254:27: note: in expansion of macro 'raw_cpu_ptr'
254 | #define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
| ^~~~~~~~~~~
kernel/sched/cpuacct.c:86:2: note: in expansion of macro 'this_cpu_ptr'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~~~~~~~~~~~
kernel/sched/cpuacct.c:86:17: error: 'struct cpuacct' has no member named 'alistats'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~
include/linux/compiler-gcc.h:57:34: note: in definition of macro 'RELOC_HIDE'
57 | __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
| ^~~
>> include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
>> include/linux/percpu-defs.h:244:2: note: in expansion of macro 'arch_raw_cpu_ptr'
244 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:254:27: note: in expansion of macro 'raw_cpu_ptr'
254 | #define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
| ^~~~~~~~~~~
kernel/sched/cpuacct.c:86:2: note: in expansion of macro 'this_cpu_ptr'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~~~~~~~~~~~
kernel/sched/cpuacct.c:86:17: error: 'struct cpuacct' has no member named 'alistats'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~
include/linux/compiler-gcc.h:58:10: note: in definition of macro 'RELOC_HIDE'
58 | (typeof(ptr)) (__ptr + (off)); \
| ^~~
>> include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
>> include/linux/percpu-defs.h:244:2: note: in expansion of macro 'arch_raw_cpu_ptr'
244 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:254:27: note: in expansion of macro 'raw_cpu_ptr'
254 | #define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
| ^~~~~~~~~~~
kernel/sched/cpuacct.c:86:2: note: in expansion of macro 'this_cpu_ptr'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~~~~~~~~~~~
kernel/sched/cpuacct.c:86:17: error: 'struct cpuacct' has no member named 'alistats'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~
include/linux/compiler-gcc.h:58:10: note: in definition of macro 'RELOC_HIDE'
58 | (typeof(ptr)) (__ptr + (off)); \
| ^~~
>> include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
>> include/linux/percpu-defs.h:244:2: note: in expansion of macro 'arch_raw_cpu_ptr'
244 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:254:27: note: in expansion of macro 'raw_cpu_ptr'
254 | #define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
| ^~~~~~~~~~~
kernel/sched/cpuacct.c:86:2: note: in expansion of macro 'this_cpu_ptr'
86 | this_cpu_ptr(ca->alistats)->nr_migrations++;
| ^~~~~~~~~~~~
vim +/SHIFT_PERCPU_PTR +44 include/asm-generic/percpu.h
acdac87202a4081 travis(a)sgi.com 2008-01-30 38
bbc344e1e3aef30 Tejun Heo 2014-06-17 39 /*
bbc344e1e3aef30 Tejun Heo 2014-06-17 40 * Arch may define arch_raw_cpu_ptr() to provide more efficient address
bbc344e1e3aef30 Tejun Heo 2014-06-17 41 * translations for raw_cpu_ptr().
bbc344e1e3aef30 Tejun Heo 2014-06-17 42 */
bbc344e1e3aef30 Tejun Heo 2014-06-17 43 #ifndef arch_raw_cpu_ptr
bbc344e1e3aef30 Tejun Heo 2014-06-17 @44 #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
db7829c6cc32f3c Brian Gerst 2010-09-09 45 #endif
bbc344e1e3aef30 Tejun Heo 2014-06-17 46
:::::: The code at line 44 was first introduced by commit
:::::: bbc344e1e3aef3034a0edc79f7f64a912517926b percpu: introduce arch_raw_cpu_ptr()
:::::: TO: Tejun Heo <tj@kernel.org>
:::::: CC: Tejun Heo <tj@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19213 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-28 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 9:32 [alibaba-cloud:linux-next 11097/11102] include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR' kbuild test robot
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.