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

From: kernel test robot
Date: Fri Apr 08 2022 - 20:56:08 EST


tree: https://github.com/l1k/linux smsc95xx_5.17
head: 05d68ced287b30f62f18f95b5476135ef669804a
commit: d9c90edc942c69dc18b6818f69ba36024d1446fa [83/887] ARM64: Round-Robin dispatch IRQs between CPUs.
config: arm64-randconfig-r006-20220408 (https://download.01.org/0day-ci/archive/20220409/202204090803.BYLpU9Vt-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c29a51b3a257908aebc01cd7c4655665db317d66)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# 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=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/irqchip/

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 function 'bcm2836_arm_irqchip_spin_gpu_irq' [-Wmissing-prototypes]
void bcm2836_arm_irqchip_spin_gpu_irq(void)
^
drivers/irqchip/irq-bcm2836.c:92:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void bcm2836_arm_irqchip_spin_gpu_irq(void)
^
static
1 warning generated.


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