[l1k:smsc95xx_5.17 83/888] drivers/irqchip/irq-bcm2836.c:92:6: warning: no previous prototype for 'bcm2836_arm_irqchip_spin_gpu_irq'

From: kernel test robot
Date: Fri Apr 08 2022 - 17:01:55 EST


tree: https://github.com/l1k/linux smsc95xx_5.17
head: 240f56c27361c195cd502d95aba51c6b8e5b808c
commit: d9c90edc942c69dc18b6818f69ba36024d1446fa [83/888] ARM64: Round-Robin dispatch IRQs between CPUs.
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20220409/202204090415.1tshazr8-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 11.2.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://github.com/l1k/linux/commit/d9c90edc942c69dc18b6818f69ba36024d1446fa
git remote add l1k https://github.com/l1k/linux
git fetch --no-tags l1k smsc95xx_5.17
git checkout d9c90edc942c69dc18b6818f69ba36024d1446fa
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/irqchip/irq-bcm2836.c:92:6: warning: no previous prototype for 'bcm2836_arm_irqchip_spin_gpu_irq' [-Wmissing-prototypes]
92 | void bcm2836_arm_irqchip_spin_gpu_irq(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/bcm2836_arm_irqchip_spin_gpu_irq +92 drivers/irqchip/irq-bcm2836.c

91
> 92 void bcm2836_arm_irqchip_spin_gpu_irq(void)
93 {
94 u32 i;
95 void __iomem *gpurouting = (intc.base + LOCAL_GPU_ROUTING);
96 u32 routing_val = readl(gpurouting);
97
98 for (i = 1; i <= 3; i++) {
99 u32 new_routing_val = (routing_val + i) & 3;
100
101 if (cpu_active(new_routing_val)) {
102 writel(new_routing_val, gpurouting);
103 return;
104 }
105 }
106 }
107 EXPORT_SYMBOL(bcm2836_arm_irqchip_spin_gpu_irq);
108

--
0-DAY CI Kernel Test Service
https://01.org/lkp