[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202008131911.NEJaqu0X%lkp@intel.com>
Date: Thu, 13 Aug 2020 19:14:15 +0800
From: kernel test robot <lkp@...el.com>
To: Peng Fan <peng.fan@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Shawn Guo <shawnguo@...nel.org>
Subject: arch/arm/include/asm/arch_gicv3.h:44:2: error: implicit declaration
of function 'write_sysreg'
Hi Peng,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dc06fe51d26efc100ac74121607c01a454867c91
commit: d82bcef5157de1368c08244a846ab968b3e5cb7e soc: imx: select ARM_GIC_V3 for i.MX8M
date: 4 weeks ago
config: arm-randconfig-r021-20200811 (attached as .config)
compiler: arm-linux-gnueabi-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
git checkout d82bcef5157de1368c08244a846ab968b3e5cb7e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/irqchip/arm-gic-v3.h:662,
from drivers/irqchip/irq-gic-v3.c:24:
arch/arm/include/asm/arch_gicv3.h: In function 'write_ICC_PMR_EL1':
>> arch/arm/include/asm/arch_gicv3.h:44:2: error: implicit declaration of function 'write_sysreg' [-Werror=implicit-function-declaration]
44 | write_sysreg(val, a32); \
| ^~~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:51:1: note: in expansion of macro 'CPUIF_MAP'
51 | CPUIF_MAP(ICC_PMR, ICC_PMR_EL1)
| ^~~~~~~~~
>> arch/arm/include/asm/arch_gicv3.h:22:20: error: implicit declaration of function '__ACCESS_CP15' [-Werror=implicit-function-declaration]
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~~~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:51:11: note: in expansion of macro 'ICC_PMR'
51 | CPUIF_MAP(ICC_PMR, ICC_PMR_EL1)
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:22:34: error: 'c4' undeclared (first use in this function)
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:51:11: note: in expansion of macro 'ICC_PMR'
51 | CPUIF_MAP(ICC_PMR, ICC_PMR_EL1)
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:22:34: note: each undeclared identifier is reported only once for each function it appears in
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:51:11: note: in expansion of macro 'ICC_PMR'
51 | CPUIF_MAP(ICC_PMR, ICC_PMR_EL1)
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:22:41: error: 'c6' undeclared (first use in this function)
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:51:11: note: in expansion of macro 'ICC_PMR'
51 | CPUIF_MAP(ICC_PMR, ICC_PMR_EL1)
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'read_ICC_PMR_EL1':
>> arch/arm/include/asm/arch_gicv3.h:48:9: error: implicit declaration of function 'read_sysreg' [-Werror=implicit-function-declaration]
48 | return read_sysreg(a32); \
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:51:1: note: in expansion of macro 'CPUIF_MAP'
51 | CPUIF_MAP(ICC_PMR, ICC_PMR_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:22:34: error: 'c4' undeclared (first use in this function)
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:48:21: note: in definition of macro 'CPUIF_MAP'
48 | return read_sysreg(a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:51:11: note: in expansion of macro 'ICC_PMR'
51 | CPUIF_MAP(ICC_PMR, ICC_PMR_EL1)
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:22:41: error: 'c6' undeclared (first use in this function)
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:48:21: note: in definition of macro 'CPUIF_MAP'
48 | return read_sysreg(a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:51:11: note: in expansion of macro 'ICC_PMR'
51 | CPUIF_MAP(ICC_PMR, ICC_PMR_EL1)
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'write_ICC_AP0R0_EL1':
arch/arm/include/asm/arch_gicv3.h:29:40: error: 'c12' undeclared (first use in this function)
29 | #define __ICC_AP0Rx(x) __ACCESS_CP15(c12, 0, c8, 4 | x)
| ^~~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:30:21: note: in expansion of macro '__ICC_AP0Rx'
30 | #define ICC_AP0R0 __ICC_AP0Rx(0)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:52:11: note: in expansion of macro 'ICC_AP0R0'
52 | CPUIF_MAP(ICC_AP0R0, ICC_AP0R0_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:29:48: error: 'c8' undeclared (first use in this function); did you mean 'u8'?
29 | #define __ICC_AP0Rx(x) __ACCESS_CP15(c12, 0, c8, 4 | x)
| ^~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:30:21: note: in expansion of macro '__ICC_AP0Rx'
30 | #define ICC_AP0R0 __ICC_AP0Rx(0)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:52:11: note: in expansion of macro 'ICC_AP0R0'
52 | CPUIF_MAP(ICC_AP0R0, ICC_AP0R0_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'read_ICC_AP0R0_EL1':
arch/arm/include/asm/arch_gicv3.h:29:40: error: 'c12' undeclared (first use in this function)
29 | #define __ICC_AP0Rx(x) __ACCESS_CP15(c12, 0, c8, 4 | x)
| ^~~
arch/arm/include/asm/arch_gicv3.h:48:21: note: in definition of macro 'CPUIF_MAP'
48 | return read_sysreg(a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:30:21: note: in expansion of macro '__ICC_AP0Rx'
30 | #define ICC_AP0R0 __ICC_AP0Rx(0)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:52:11: note: in expansion of macro 'ICC_AP0R0'
52 | CPUIF_MAP(ICC_AP0R0, ICC_AP0R0_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:29:48: error: 'c8' undeclared (first use in this function); did you mean 'u8'?
29 | #define __ICC_AP0Rx(x) __ACCESS_CP15(c12, 0, c8, 4 | x)
| ^~
arch/arm/include/asm/arch_gicv3.h:48:21: note: in definition of macro 'CPUIF_MAP'
48 | return read_sysreg(a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:30:21: note: in expansion of macro '__ICC_AP0Rx'
30 | #define ICC_AP0R0 __ICC_AP0Rx(0)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:52:11: note: in expansion of macro 'ICC_AP0R0'
52 | CPUIF_MAP(ICC_AP0R0, ICC_AP0R0_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'write_ICC_AP0R1_EL1':
arch/arm/include/asm/arch_gicv3.h:29:40: error: 'c12' undeclared (first use in this function)
29 | #define __ICC_AP0Rx(x) __ACCESS_CP15(c12, 0, c8, 4 | x)
| ^~~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:31:21: note: in expansion of macro '__ICC_AP0Rx'
31 | #define ICC_AP0R1 __ICC_AP0Rx(1)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:53:11: note: in expansion of macro 'ICC_AP0R1'
53 | CPUIF_MAP(ICC_AP0R1, ICC_AP0R1_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:29:48: error: 'c8' undeclared (first use in this function); did you mean 'u8'?
29 | #define __ICC_AP0Rx(x) __ACCESS_CP15(c12, 0, c8, 4 | x)
| ^~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:31:21: note: in expansion of macro '__ICC_AP0Rx'
31 | #define ICC_AP0R1 __ICC_AP0Rx(1)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:53:11: note: in expansion of macro 'ICC_AP0R1'
53 | CPUIF_MAP(ICC_AP0R1, ICC_AP0R1_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'read_ICC_AP0R1_EL1':
arch/arm/include/asm/arch_gicv3.h:29:40: error: 'c12' undeclared (first use in this function)
--
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'write_ICC_AP1R3_EL1':
arch/arm/include/asm/arch_gicv3.h:35:40: error: 'c12' undeclared (first use in this function)
35 | #define __ICC_AP1Rx(x) __ACCESS_CP15(c12, 0, c9, x)
| ^~~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:39:21: note: in expansion of macro '__ICC_AP1Rx'
39 | #define ICC_AP1R3 __ICC_AP1Rx(3)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:59:11: note: in expansion of macro 'ICC_AP1R3'
59 | CPUIF_MAP(ICC_AP1R3, ICC_AP1R3_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:35:48: error: 'c9' undeclared (first use in this function)
35 | #define __ICC_AP1Rx(x) __ACCESS_CP15(c12, 0, c9, x)
| ^~
arch/arm/include/asm/arch_gicv3.h:44:20: note: in definition of macro 'CPUIF_MAP'
44 | write_sysreg(val, a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:39:21: note: in expansion of macro '__ICC_AP1Rx'
39 | #define ICC_AP1R3 __ICC_AP1Rx(3)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:59:11: note: in expansion of macro 'ICC_AP1R3'
59 | CPUIF_MAP(ICC_AP1R3, ICC_AP1R3_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'read_ICC_AP1R3_EL1':
arch/arm/include/asm/arch_gicv3.h:35:40: error: 'c12' undeclared (first use in this function)
35 | #define __ICC_AP1Rx(x) __ACCESS_CP15(c12, 0, c9, x)
| ^~~
arch/arm/include/asm/arch_gicv3.h:48:21: note: in definition of macro 'CPUIF_MAP'
48 | return read_sysreg(a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:39:21: note: in expansion of macro '__ICC_AP1Rx'
39 | #define ICC_AP1R3 __ICC_AP1Rx(3)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:59:11: note: in expansion of macro 'ICC_AP1R3'
59 | CPUIF_MAP(ICC_AP1R3, ICC_AP1R3_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:35:48: error: 'c9' undeclared (first use in this function)
35 | #define __ICC_AP1Rx(x) __ACCESS_CP15(c12, 0, c9, x)
| ^~
arch/arm/include/asm/arch_gicv3.h:48:21: note: in definition of macro 'CPUIF_MAP'
48 | return read_sysreg(a32); \
| ^~~
arch/arm/include/asm/arch_gicv3.h:39:21: note: in expansion of macro '__ICC_AP1Rx'
39 | #define ICC_AP1R3 __ICC_AP1Rx(3)
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:59:11: note: in expansion of macro 'ICC_AP1R3'
59 | CPUIF_MAP(ICC_AP1R3, ICC_AP1R3_EL1)
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_write_eoir':
arch/arm/include/asm/arch_gicv3.h:18:35: error: 'c12' undeclared (first use in this function)
18 | #define ICC_EOIR1 __ACCESS_CP15(c12, 0, c12, 1)
| ^~~
arch/arm/include/asm/arch_gicv3.h:68:20: note: in expansion of macro 'ICC_EOIR1'
68 | write_sysreg(irq, ICC_EOIR1);
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_write_dir':
arch/arm/include/asm/arch_gicv3.h:19:34: error: 'c12' undeclared (first use in this function)
19 | #define ICC_DIR __ACCESS_CP15(c12, 0, c11, 1)
| ^~~
arch/arm/include/asm/arch_gicv3.h:74:20: note: in expansion of macro 'ICC_DIR'
74 | write_sysreg(val, ICC_DIR);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:19:42: error: 'c11' undeclared (first use in this function)
19 | #define ICC_DIR __ACCESS_CP15(c12, 0, c11, 1)
| ^~~
arch/arm/include/asm/arch_gicv3.h:74:20: note: in expansion of macro 'ICC_DIR'
74 | write_sysreg(val, ICC_DIR);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_read_iar':
arch/arm/include/asm/arch_gicv3.h:20:34: error: 'c12' undeclared (first use in this function)
20 | #define ICC_IAR1 __ACCESS_CP15(c12, 0, c12, 0)
| ^~~
arch/arm/include/asm/arch_gicv3.h:80:28: note: in expansion of macro 'ICC_IAR1'
80 | u32 irqstat = read_sysreg(ICC_IAR1);
| ^~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_write_ctlr':
arch/arm/include/asm/arch_gicv3.h:23:34: error: 'c12' undeclared (first use in this function)
23 | #define ICC_CTLR __ACCESS_CP15(c12, 0, c12, 4)
| ^~~
arch/arm/include/asm/arch_gicv3.h:89:20: note: in expansion of macro 'ICC_CTLR'
89 | write_sysreg(val, ICC_CTLR);
| ^~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_read_ctlr':
arch/arm/include/asm/arch_gicv3.h:23:34: error: 'c12' undeclared (first use in this function)
23 | #define ICC_CTLR __ACCESS_CP15(c12, 0, c12, 4)
| ^~~
arch/arm/include/asm/arch_gicv3.h:95:21: note: in expansion of macro 'ICC_CTLR'
95 | return read_sysreg(ICC_CTLR);
| ^~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_write_grpen1':
arch/arm/include/asm/arch_gicv3.h:25:37: error: 'c12' undeclared (first use in this function)
25 | #define ICC_IGRPEN1 __ACCESS_CP15(c12, 0, c12, 7)
| ^~~
arch/arm/include/asm/arch_gicv3.h:100:20: note: in expansion of macro 'ICC_IGRPEN1'
100 | write_sysreg(val, ICC_IGRPEN1);
| ^~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_write_sgi1r':
>> arch/arm/include/asm/arch_gicv3.h:21:21: error: implicit declaration of function '__ACCESS_CP15_64' [-Werror=implicit-function-declaration]
21 | #define ICC_SGI1R __ACCESS_CP15_64(0, c12)
| ^~~~~~~~~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:106:20: note: in expansion of macro 'ICC_SGI1R'
106 | write_sysreg(val, ICC_SGI1R);
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h:21:41: error: 'c12' undeclared (first use in this function)
21 | #define ICC_SGI1R __ACCESS_CP15_64(0, c12)
| ^~~
arch/arm/include/asm/arch_gicv3.h:106:20: note: in expansion of macro 'ICC_SGI1R'
106 | write_sysreg(val, ICC_SGI1R);
| ^~~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_read_sre':
arch/arm/include/asm/arch_gicv3.h:24:34: error: 'c12' undeclared (first use in this function)
24 | #define ICC_SRE __ACCESS_CP15(c12, 0, c12, 5)
| ^~~
arch/arm/include/asm/arch_gicv3.h:111:21: note: in expansion of macro 'ICC_SRE'
111 | return read_sysreg(ICC_SRE);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_write_sre':
arch/arm/include/asm/arch_gicv3.h:24:34: error: 'c12' undeclared (first use in this function)
24 | #define ICC_SRE __ACCESS_CP15(c12, 0, c12, 5)
| ^~~
arch/arm/include/asm/arch_gicv3.h:116:20: note: in expansion of macro 'ICC_SRE'
116 | write_sysreg(val, ICC_SRE);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_write_bpr1':
arch/arm/include/asm/arch_gicv3.h:26:34: error: 'c12' undeclared (first use in this function)
26 | #define ICC_BPR1 __ACCESS_CP15(c12, 0, c12, 3)
| ^~~
arch/arm/include/asm/arch_gicv3.h:122:20: note: in expansion of macro 'ICC_BPR1'
122 | write_sysreg(val, ICC_BPR1);
| ^~~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_read_pmr':
arch/arm/include/asm/arch_gicv3.h:22:34: error: 'c4' undeclared (first use in this function)
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:127:21: note: in expansion of macro 'ICC_PMR'
127 | return read_sysreg(ICC_PMR);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:22:41: error: 'c6' undeclared (first use in this function)
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:127:21: note: in expansion of macro 'ICC_PMR'
127 | return read_sysreg(ICC_PMR);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_write_pmr':
arch/arm/include/asm/arch_gicv3.h:22:34: error: 'c4' undeclared (first use in this function)
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:132:20: note: in expansion of macro 'ICC_PMR'
132 | write_sysreg(val, ICC_PMR);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:22:41: error: 'c6' undeclared (first use in this function)
22 | #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
| ^~
arch/arm/include/asm/arch_gicv3.h:132:20: note: in expansion of macro 'ICC_PMR'
132 | write_sysreg(val, ICC_PMR);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h: In function 'gic_read_rpr':
arch/arm/include/asm/arch_gicv3.h:27:34: error: 'c12' undeclared (first use in this function)
27 | #define ICC_RPR __ACCESS_CP15(c12, 0, c11, 3)
| ^~~
arch/arm/include/asm/arch_gicv3.h:137:21: note: in expansion of macro 'ICC_RPR'
137 | return read_sysreg(ICC_RPR);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:27:42: error: 'c11' undeclared (first use in this function)
27 | #define ICC_RPR __ACCESS_CP15(c12, 0, c11, 3)
| ^~~
arch/arm/include/asm/arch_gicv3.h:137:21: note: in expansion of macro 'ICC_RPR'
137 | return read_sysreg(ICC_RPR);
| ^~~~~~~
arch/arm/include/asm/arch_gicv3.h:138:1: warning: control reaches end of non-void function [-Wreturn-type]
138 | }
| ^
arch/arm/include/asm/arch_gicv3.h: In function 'gic_read_ctlr':
arch/arm/include/asm/arch_gicv3.h:96:1: warning: control reaches end of non-void function [-Wreturn-type]
96 | }
| ^
arch/arm/include/asm/arch_gicv3.h: In function 'gic_read_sre':
arch/arm/include/asm/arch_gicv3.h:112:1: warning: control reaches end of non-void function [-Wreturn-type]
112 | }
| ^
arch/arm/include/asm/arch_gicv3.h: In function 'gic_read_pmr':
arch/arm/include/asm/arch_gicv3.h:128:1: warning: control reaches end of non-void function [-Wreturn-type]
128 | }
| ^
cc1: some warnings being treated as errors
..
vim +/write_sysreg +44 arch/arm/include/asm/arch_gicv3.h
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 17
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 18 #define ICC_EOIR1 __ACCESS_CP15(c12, 0, c12, 1)
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 19 #define ICC_DIR __ACCESS_CP15(c12, 0, c11, 1)
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 20 #define ICC_IAR1 __ACCESS_CP15(c12, 0, c12, 0)
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 @21 #define ICC_SGI1R __ACCESS_CP15_64(0, c12)
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 @22 #define ICC_PMR __ACCESS_CP15(c4, 0, c6, 0)
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 23 #define ICC_CTLR __ACCESS_CP15(c12, 0, c12, 4)
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 24 #define ICC_SRE __ACCESS_CP15(c12, 0, c12, 5)
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 25 #define ICC_IGRPEN1 __ACCESS_CP15(c12, 0, c12, 7)
91ef84428a86b75 Daniel Thompson 2016-08-19 26 #define ICC_BPR1 __ACCESS_CP15(c12, 0, c12, 3)
e99da7c6f51b487 Julien Thierry 2019-01-31 27 #define ICC_RPR __ACCESS_CP15(c12, 0, c11, 3)
d5cd50d318f70fc Jean-Philippe Brucker 2015-10-01 28
d6062a6d62c643a Marc Zyngier 2018-03-09 29 #define __ICC_AP0Rx(x) __ACCESS_CP15(c12, 0, c8, 4 | x)
d6062a6d62c643a Marc Zyngier 2018-03-09 30 #define ICC_AP0R0 __ICC_AP0Rx(0)
d6062a6d62c643a Marc Zyngier 2018-03-09 31 #define ICC_AP0R1 __ICC_AP0Rx(1)
d6062a6d62c643a Marc Zyngier 2018-03-09 32 #define ICC_AP0R2 __ICC_AP0Rx(2)
d6062a6d62c643a Marc Zyngier 2018-03-09 33 #define ICC_AP0R3 __ICC_AP0Rx(3)
d6062a6d62c643a Marc Zyngier 2018-03-09 34
d6062a6d62c643a Marc Zyngier 2018-03-09 35 #define __ICC_AP1Rx(x) __ACCESS_CP15(c12, 0, c9, x)
d6062a6d62c643a Marc Zyngier 2018-03-09 36 #define ICC_AP1R0 __ICC_AP1Rx(0)
d6062a6d62c643a Marc Zyngier 2018-03-09 37 #define ICC_AP1R1 __ICC_AP1Rx(1)
d6062a6d62c643a Marc Zyngier 2018-03-09 38 #define ICC_AP1R2 __ICC_AP1Rx(2)
d6062a6d62c643a Marc Zyngier 2018-03-09 39 #define ICC_AP1R3 __ICC_AP1Rx(3)
d6062a6d62c643a Marc Zyngier 2018-03-09 40
a078bedf17c2e43 Vladimir Murzin 2016-09-12 41 #define CPUIF_MAP(a32, a64) \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 42 static inline void write_ ## a64(u32 val) \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 43 { \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 @44 write_sysreg(val, a32); \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 45 } \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 46 static inline u32 read_ ## a64(void) \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 47 { \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 @48 return read_sysreg(a32); \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 49 } \
a078bedf17c2e43 Vladimir Murzin 2016-09-12 50
:::::: The code at line 44 was first introduced by commit
:::::: a078bedf17c2e43819fea54bdfd5793845142e3a ARM: gic-v3: Introduce 32-to-64-bit mappings for GICv3 cpu registers
:::::: TO: Vladimir Murzin <vladimir.murzin@....com>
:::::: CC: Christoffer Dall <christoffer.dall@...aro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (31187 bytes)
Powered by blists - more mailing lists