From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [peterz-queue:mm/apply-to-page-range 4/6] arch/powerpc/include/asm/hardirq.h:23:25: error: storage class specified for parameter 'irq_cpustat_t'
Date: Sat, 30 Jan 2021 02:59:28 +0800 [thread overview]
Message-ID: <202101300225.omLv0AWB-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 21654 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git mm/apply-to-page-range
head: a47da290a4ea193c408840f03d2edfa59c547208
commit: 7cba8c501b1137c69e72889384a5274d506bb096 [4/6] mm: Introduce verify_page_range()
config: powerpc-tqm5200_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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/peterz/queue.git/commit/?id=7cba8c501b1137c69e72889384a5274d506bb096
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue mm/apply-to-page-range
git checkout 7cba8c501b1137c69e72889384a5274d506bb096
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
828 | {
| ^
include/linux/irq.h:833:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
833 | {
| ^
include/linux/irq.h:839:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
839 | {
| ^
include/linux/irq.h:844:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
844 | {
| ^
include/linux/irq.h:850:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
850 | {
| ^
include/linux/irq.h:855:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
855 | {
| ^
include/linux/irq.h:861:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
861 | {
| ^
include/linux/irq.h:870:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
870 | {
| ^
include/linux/irq.h:875:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
875 | {
| ^
include/linux/irq.h:882:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
882 | {
| ^
include/linux/irq.h:900:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
900 | {
| ^
include/linux/irq.h:904:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
904 | {
| ^
include/linux/irq.h:910:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
910 | {
| ^
include/linux/irq.h:959:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
959 | {
| ^
include/linux/irq.h:977:1: warning: empty declaration
977 | struct irq_chip_regs {
| ^~~~~~
include/linux/irq.h:1003:2: error: expected specifier-qualifier-list before 'irq_flow_handler_t'
1003 | irq_flow_handler_t handler;
| ^~~~~~~~~~~~~~~~~~
include/linux/irq.h:1000:1: warning: empty declaration
1000 | struct irq_chip_type {
| ^~~~~~
include/linux/irq.h:1042:1: warning: empty declaration
1042 | struct irq_chip_generic {
| ^~~~~~
include/linux/irq.h:1075:1: warning: empty declaration
1075 | enum irq_gc_flags {
| ^~~~
include/linux/irq.h:1092:1: warning: empty declaration
1092 | struct irq_domain_chip_generic {
| ^~~~~~
include/linux/irq.h:1118:34: error: expected declaration specifiers or '...' before 'irq_flow_handler_t'
1118 | void __iomem *reg_base, irq_flow_handler_t handler);
| ^~~~~~~~~~~~~~~~~~
include/linux/irq.h:1129:8: error: expected declaration specifiers or '...' before 'irq_flow_handler_t'
1129 | irq_flow_handler_t handler);
| ^~~~~~~~~~~~~~~~~~
include/linux/irq.h:1138:10: error: expected declaration specifiers or '...' before 'irq_flow_handler_t'
1138 | irq_flow_handler_t handler,
| ^~~~~~~~~~~~~~~~~~
include/linux/irq.h:1151:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
1151 | {
| ^
include/linux/irq.h:1158:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
1158 | {
| ^
include/linux/irq.h:1164:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
1164 | {
| ^
include/linux/irq.h:1181:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
1181 | static inline void irq_gc_lock(struct irq_chip_generic *gc) { }
| ^
include/linux/irq.h:1182:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
1182 | static inline void irq_gc_unlock(struct irq_chip_generic *gc) { }
| ^
include/linux/irq.h:1197:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
1197 | {
| ^
include/linux/irq.h:1206:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
1206 | {
| ^
include/linux/irq.h:1213:1: warning: empty declaration
1213 | struct irq_matrix;
| ^~~~~~
In file included from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
>> arch/powerpc/include/asm/hardirq.h:23:25: error: storage class specified for parameter 'irq_cpustat_t'
23 | } ____cacheline_aligned irq_cpustat_t;
| ^~~~~~~~~~~~~
In file included from include/asm-generic/percpu.h:7,
from arch/powerpc/include/asm/percpu.h:18,
from include/linux/irqflags.h:17,
from include/linux/spinlock.h:54,
from include/linux/ipc.h:5,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/compat.h:14,
from arch/powerpc/kernel/asm-offsets.c:14:
>> arch/powerpc/include/asm/hardirq.h:25:47: error: storage class specified for parameter 'irq_stat'
25 | DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
| ^~~~~~~~
include/linux/percpu-defs.h:101:44: note: in definition of macro 'DECLARE_PER_CPU_SECTION'
101 | extern __PCPU_ATTRS(sec) __typeof__(type) name
| ^~~~
arch/powerpc/include/asm/hardirq.h:25:1: note: in expansion of macro 'DECLARE_PER_CPU_SHARED_ALIGNED'
25 | DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/hardirq.h:25:47: error: section attribute not allowed for 'irq_stat'
25 | DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
| ^~~~~~~~
include/linux/percpu-defs.h:101:44: note: in definition of macro 'DECLARE_PER_CPU_SECTION'
101 | extern __PCPU_ATTRS(sec) __typeof__(type) name
| ^~~~
arch/powerpc/include/asm/hardirq.h:25:1: note: in expansion of macro 'DECLARE_PER_CPU_SHARED_ALIGNED'
25 | DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
>> arch/powerpc/include/asm/hardirq.h:31:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
31 | {
| ^
>> arch/powerpc/include/asm/hardirq.h:35:12: error: storage class specified for parameter 'arch_irq_stat_cpu'
35 | extern u64 arch_irq_stat_cpu(unsigned int cpu);
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/linux/hardirq.h:12:13: error: storage class specified for parameter 'synchronize_irq'
12 | extern void synchronize_irq(unsigned int irq);
| ^~~~~~~~~~~~~~~
include/linux/hardirq.h:13:13: error: storage class specified for parameter 'synchronize_hardirq'
13 | extern bool synchronize_hardirq(unsigned int irq);
| ^~~~~~~~~~~~~~~~~~~
include/linux/hardirq.h:18:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
18 | static inline void __rcu_irq_enter_check_tick(void) { }
| ^
include/linux/hardirq.h:22:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
22 | {
| ^
include/linux/hardirq.h:95:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
95 | static inline void rcu_nmi_enter(void) { }
| ^
include/linux/hardirq.h:96:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
96 | static inline void rcu_nmi_exit(void) { }
| ^
In file included from arch/powerpc/include/asm/elf.h:11,
from include/linux/elf.h:6,
from arch/powerpc/include/asm/sections.h:6,
from include/linux/interrupt.h:20,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
>> arch/powerpc/include/uapi/asm/elf.h:102:23: error: storage class specified for parameter 'elf_greg_t64'
102 | typedef unsigned long elf_greg_t64;
| ^~~~~~~~~~~~
>> arch/powerpc/include/uapi/asm/elf.h:103:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_gregset_t64'
103 | typedef elf_greg_t64 elf_gregset_t64[ELF_NGREG];
| ^~~~~~~~~~~~~~~
>> arch/powerpc/include/uapi/asm/elf.h:105:22: error: storage class specified for parameter 'elf_greg_t32'
105 | typedef unsigned int elf_greg_t32;
| ^~~~~~~~~~~~
>> arch/powerpc/include/uapi/asm/elf.h:106:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_gregset_t32'
106 | typedef elf_greg_t32 elf_gregset_t32[ELF_NGREG];
| ^~~~~~~~~~~~~~~
>> arch/powerpc/include/uapi/asm/elf.h:107:9: error: unknown type name 'elf_gregset_t32'
107 | typedef elf_gregset_t32 compat_elf_gregset_t;
| ^~~~~~~~~~~~~~~
>> arch/powerpc/include/uapi/asm/elf.h:107:25: error: storage class specified for parameter 'compat_elf_gregset_t'
107 | typedef elf_gregset_t32 compat_elf_gregset_t;
| ^~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/uapi/asm/elf.h:127:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_greg_t'
127 | typedef elf_greg_t32 elf_greg_t;
| ^~~~~~~~~~
arch/powerpc/include/uapi/asm/elf.h:128:9: error: unknown type name 'elf_gregset_t32'
128 | typedef elf_gregset_t32 elf_gregset_t;
| ^~~~~~~~~~~~~~~
>> arch/powerpc/include/uapi/asm/elf.h:128:25: error: storage class specified for parameter 'elf_gregset_t'
128 | typedef elf_gregset_t32 elf_gregset_t;
| ^~~~~~~~~~~~~
>> arch/powerpc/include/uapi/asm/elf.h:138:16: error: storage class specified for parameter 'elf_fpreg_t'
138 | typedef double elf_fpreg_t;
| ^~~~~~~~~~~
arch/powerpc/include/uapi/asm/elf.h:139:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_fpregset_t'
139 | typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
| ^~~~~~~~~~~~~~
arch/powerpc/include/uapi/asm/elf.h:160:21: error: storage class specified for parameter 'elf_vrreg_t'
160 | typedef __vector128 elf_vrreg_t;
| ^~~~~~~~~~~
arch/powerpc/include/uapi/asm/elf.h:161:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_vrregset_t'
161 | typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
| ^~~~~~~~~~~~~~
arch/powerpc/include/uapi/asm/elf.h:293:1: warning: empty declaration
293 | struct ppc64_opd_entry
| ^~~~~~
In file included from include/linux/elf.h:6,
from arch/powerpc/include/asm/sections.h:6,
from include/linux/interrupt.h:20,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
arch/powerpc/include/asm/elf.h:49:43: error: expected declaration specifiers or '...' before 'elf_gregset_t'
49 | static inline void ppc_elf_core_copy_regs(elf_gregset_t elf_regs,
| ^~~~~~~~~~~~~
arch/powerpc/include/asm/elf.h:110:12: error: storage class specified for parameter 'dcache_bsize'
110 | extern int dcache_bsize;
| ^~~~~~~~~~~~
arch/powerpc/include/asm/elf.h:111:12: error: storage class specified for parameter 'icache_bsize'
111 | extern int icache_bsize;
| ^~~~~~~~~~~~
arch/powerpc/include/asm/elf.h:112:12: error: storage class specified for parameter 'ucache_bsize'
112 | extern int ucache_bsize;
| ^~~~~~~~~~~~
arch/powerpc/include/asm/elf.h:116:1: warning: empty declaration
116 | struct linux_binprm;
| ^~~~~~
arch/powerpc/include/asm/elf.h:117:12: error: storage class specified for parameter 'arch_setup_additional_pages'
117 | extern int arch_setup_additional_pages(struct linux_binprm *bprm,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/elf.h:7,
from arch/powerpc/include/asm/sections.h:6,
from include/linux/interrupt.h:20,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:23:
include/uapi/linux/elf.h:9:15: error: storage class specified for parameter 'Elf32_Addr'
9 | typedef __u32 Elf32_Addr;
| ^~~~~~~~~~
include/uapi/linux/elf.h:10:15: error: storage class specified for parameter 'Elf32_Half'
10 | typedef __u16 Elf32_Half;
| ^~~~~~~~~~
include/uapi/linux/elf.h:11:15: error: storage class specified for parameter 'Elf32_Off'
11 | typedef __u32 Elf32_Off;
| ^~~~~~~~~
include/uapi/linux/elf.h:12:15: error: storage class specified for parameter 'Elf32_Sword'
12 | typedef __s32 Elf32_Sword;
| ^~~~~~~~~~~
include/uapi/linux/elf.h:13:15: error: storage class specified for parameter 'Elf32_Word'
13 | typedef __u32 Elf32_Word;
| ^~~~~~~~~~
include/uapi/linux/elf.h:16:15: error: storage class specified for parameter 'Elf64_Addr'
16 | typedef __u64 Elf64_Addr;
| ^~~~~~~~~~
include/uapi/linux/elf.h:17:15: error: storage class specified for parameter 'Elf64_Half'
17 | typedef __u16 Elf64_Half;
| ^~~~~~~~~~
include/uapi/linux/elf.h:18:15: error: storage class specified for parameter 'Elf64_SHalf'
18 | typedef __s16 Elf64_SHalf;
| ^~~~~~~~~~~
include/uapi/linux/elf.h:19:15: error: storage class specified for parameter 'Elf64_Off'
19 | typedef __u64 Elf64_Off;
| ^~~~~~~~~
include/uapi/linux/elf.h:20:15: error: storage class specified for parameter 'Elf64_Sword'
20 | typedef __s32 Elf64_Sword;
| ^~~~~~~~~~~
include/uapi/linux/elf.h:21:15: error: storage class specified for parameter 'Elf64_Word'
21 | typedef __u32 Elf64_Word;
| ^~~~~~~~~~
include/uapi/linux/elf.h:22:15: error: storage class specified for parameter 'Elf64_Xword'
22 | typedef __u64 Elf64_Xword;
| ^~~~~~~~~~~
include/uapi/linux/elf.h:23:15: error: storage class specified for parameter 'Elf64_Sxword'
23 | typedef __s64 Elf64_Sxword;
| ^~~~~~~~~~~~
include/uapi/linux/elf.h:140:3: error: expected specifier-qualifier-list before 'Elf32_Sword'
140 | Elf32_Sword d_tag;
| ^~~~~~~~~~~
include/uapi/linux/elf.h:145:3: error: storage class specified for parameter 'Elf32_Dyn'
145 | } Elf32_Dyn;
| ^~~~~~~~~
include/uapi/linux/elf.h:148:3: error: expected specifier-qualifier-list before 'Elf64_Sxword'
148 | Elf64_Sxword d_tag; /* entry tag value */
| ^~~~~~~~~~~~
include/uapi/linux/elf.h:153:3: error: storage class specified for parameter 'Elf64_Dyn'
153 | } Elf64_Dyn;
..
vim +/irq_cpustat_t +23 arch/powerpc/include/asm/hardirq.h
8c007bfdf1bab5 Anton Blanchard 2010-01-31 7
8c007bfdf1bab5 Anton Blanchard 2010-01-31 8 typedef struct {
8c007bfdf1bab5 Anton Blanchard 2010-01-31 9 unsigned int __softirq_pending;
c041cfa2af1ccb fan.du 2013-01-23 10 unsigned int timer_irqs_event;
e360cd37f0e9ba Nicholas Piggin 2018-05-05 11 unsigned int broadcast_irqs_event;
c041cfa2af1ccb fan.du 2013-01-23 12 unsigned int timer_irqs_others;
89713ed1081540 Anton Blanchard 2010-01-31 13 unsigned int pmu_irqs;
89713ed1081540 Anton Blanchard 2010-01-31 14 unsigned int mce_exceptions;
17081102a6e0fe Anton Blanchard 2010-01-31 15 unsigned int spurious_irqs;
ca41ad4377072e Nicholas Piggin 2017-08-01 16 unsigned int sreset_irqs;
04019bf8ebb3c8 Nicholas Piggin 2017-08-01 17 #ifdef CONFIG_PPC_WATCHDOG
04019bf8ebb3c8 Nicholas Piggin 2017-08-01 18 unsigned int soft_nmi_irqs;
04019bf8ebb3c8 Nicholas Piggin 2017-08-01 19 #endif
a6a058e52a0ce6 Ian Munsie 2013-03-21 20 #ifdef CONFIG_PPC_DOORBELL
a6a058e52a0ce6 Ian Munsie 2013-03-21 21 unsigned int doorbell_irqs;
a6a058e52a0ce6 Ian Munsie 2013-03-21 22 #endif
8c007bfdf1bab5 Anton Blanchard 2010-01-31 @23 } ____cacheline_aligned irq_cpustat_t;
8c007bfdf1bab5 Anton Blanchard 2010-01-31 24
8c007bfdf1bab5 Anton Blanchard 2010-01-31 @25 DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
8c007bfdf1bab5 Anton Blanchard 2010-01-31 26
8c007bfdf1bab5 Anton Blanchard 2010-01-31 27 #define __ARCH_IRQ_STAT
c16bee4bded544 Nicholas Piggin 2017-11-17 28 #define __ARCH_IRQ_EXIT_IRQS_DISABLED
69111bac42f5ce Christoph Lameter 2014-10-21 29
8c007bfdf1bab5 Anton Blanchard 2010-01-31 30 static inline void ack_bad_irq(unsigned int irq)
8c007bfdf1bab5 Anton Blanchard 2010-01-31 @31 {
8c007bfdf1bab5 Anton Blanchard 2010-01-31 32 printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
8c007bfdf1bab5 Anton Blanchard 2010-01-31 33 }
8c007bfdf1bab5 Anton Blanchard 2010-01-31 34
89713ed1081540 Anton Blanchard 2010-01-31 @35 extern u64 arch_irq_stat_cpu(unsigned int cpu);
89713ed1081540 Anton Blanchard 2010-01-31 36 #define arch_irq_stat_cpu arch_irq_stat_cpu
89713ed1081540 Anton Blanchard 2010-01-31 37
:::::: The code at line 23 was first introduced by commit
:::::: 8c007bfdf1bab536f824d91fccc76596c18aba78 powerpc: Reduce footprint of irq_stat
:::::: TO: Anton Blanchard <anton@samba.org>
:::::: CC: Benjamin Herrenschmidt <benh@kernel.crashing.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: 17487 bytes --]
reply other threads:[~2021-01-29 18:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202101300225.omLv0AWB-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.