drivers/irqchip/irq-xilinx-intc.c:127:14: warning: no previous prototype for 'xintc_get_irq'

kernel test robot
2022-03-01T04:18:55Z

head: 719fce7539cd3e186598e2aed36325fe892150cf
commit: debf69cfd4c618c7036a13cc4edd1faf87ce7d53 irqchip/xilinx: Expose Kconfig option for Zynq/ZynqMP
date: 10 months ago
config: arm64-randconfig-r031-20220227 (https://download.01.org/0day-ci/archive/20220301/202203011058.VcuVhghd-lkp@intel.com/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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=debf69cfd4c618c7036a13cc4edd1faf87ce7d53
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout debf69cfd4c618c7036a13cc4edd1faf87ce7d53
# 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 drivers/gpu/drm/tegra/ drivers/irqchip/

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

All warnings (new ones prefixed by >>):

>> drivers/irqchip/irq-xilinx-intc.c:127:14: warning: no previous prototype for 'xintc_get_irq' [-Wmissing-prototypes]
127 | unsigned int xintc_get_irq(void)
| ^~~~~~~~~~~~~

vim +/xintc_get_irq +127 drivers/irqchip/irq-xilinx-intc.c

67862a3c47fcfc9 Mubin Sayyed 2020-03-17 126
4cea749d56bec94 Marc Zyngier 2020-03-30 @127 unsigned int xintc_get_irq(void)
4cea749d56bec94 Marc Zyngier 2020-03-30 128 {
4cea749d56bec94 Marc Zyngier 2020-03-30 129 unsigned int irq = -1;
4cea749d56bec94 Marc Zyngier 2020-03-30 130 u32 hwirq;
4cea749d56bec94 Marc Zyngier 2020-03-30 131
4cea749d56bec94 Marc Zyngier 2020-03-30 132 hwirq = xintc_read(primary_intc, IVR);
4cea749d56bec94 Marc Zyngier 2020-03-30 133 if (hwirq != -1U)
4cea749d56bec94 Marc Zyngier 2020-03-30 134 irq = irq_find_mapping(primary_intc->root_domain, hwirq);
4cea749d56bec94 Marc Zyngier 2020-03-30 135
4cea749d56bec94 Marc Zyngier 2020-03-30 136 pr_debug("irq-xilinx: hwirq=%d, irq=%d\n", hwirq, irq);
4cea749d56bec94 Marc Zyngier 2020-03-30 137
4cea749d56bec94 Marc Zyngier 2020-03-30 138 return irq;
4cea749d56bec94 Marc Zyngier 2020-03-30 139 }
4cea749d56bec94 Marc Zyngier 2020-03-30 140