tree:
https://github.com/avpatel/linux.git riscv_aia_v1
head: 78a6d4e6a98f8f59e5a2c127ae5a5ee6d9f2ade6
commit: 3ac8b374f5e8bf751dc95d83089f0b9b58c1cbf5 [5/18] RISC-V: Treat IPIs as normal Linux
IRQs
config: riscv-randconfig-s032-20210622 (attached as .config)
compiler: riscv64-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
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://github.com/avpatel/linux/commit/3ac8b374f5e8bf751dc95d83089f0b9b5...
git remote add avpatel
https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_aia_v1
git checkout 3ac8b374f5e8bf751dc95d83089f0b9b58c1cbf5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> arch/riscv/kernel/smp.c:170:50: sparse: sparse: incorrect type in
argument 4 (different address spaces) @@ expected void [noderef] __percpu
*percpu_dev_id @@ got int * @@
arch/riscv/kernel/smp.c:170:50: sparse:
expected void [noderef] __percpu *percpu_dev_id
arch/riscv/kernel/smp.c:170:50: sparse: got int *
vim +170 arch/riscv/kernel/smp.c
158
159 void riscv_ipi_setup(void)
160 {
161 int i, err;
162
163 /* SBI based IPIs is our last option */
164 if (!ipi_virq_base)
165 sbi_ipi_init();
166
167 /* Request IPIs */
168 for (i = 0; i < nr_ipi; i++) {
169 err = request_percpu_irq(ipi_virq_base + i, handle_IPI,
170 "IPI", &ipi_virq_base);
171 WARN_ON(err);
172
173 ipi_desc[i] = irq_to_desc(ipi_virq_base + i);
174 irq_set_status_flags(ipi_virq_base + i, IRQ_HIDDEN);
175 }
176
177 /* Enabled IPIs for boot CPU immediately */
178 riscv_ipi_enable();
179 }
180
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org