[kbingham-rcar:kbingham/vsp/v3u-rd-5.15 25/26] drivers/soc/renesas/rcar-irqc.c:46:6: warning: no previous prototype for function 'r8a7791_irqc_show'

From: kernel test robot
Date: Thu Sep 30 2021 - 09:01:25 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git kbingham/vsp/v3u-rd-5.15
head: 61b5560118d70887c4acc6687912e78eb279bfde
commit: a9d6287bf4fbc6eff6f93606086c74a35d8ce5f0 [25/26] soc: renesas: rcar: IRQC debug handling
config: arm64-randconfig-r021-20210930 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 28981015526f2192440c18f18e8a20cd11b0779c)
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://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git/commit/?id=a9d6287bf4fbc6eff6f93606086c74a35d8ce5f0
git remote add kbingham-rcar https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git
git fetch --no-tags kbingham-rcar kbingham/vsp/v3u-rd-5.15
git checkout a9d6287bf4fbc6eff6f93606086c74a35d8ce5f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64

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/soc/renesas/rcar-irqc.c:46:6: warning: no previous prototype for function 'r8a7791_irqc_show' [-Wmissing-prototypes]
void r8a7791_irqc_show(const char *msg, unsigned int n)
^
drivers/soc/renesas/rcar-irqc.c:46:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void r8a7791_irqc_show(const char *msg, unsigned int n)
^
static
1 warning generated.


vim +/r8a7791_irqc_show +46 drivers/soc/renesas/rcar-irqc.c

45
> 46 void r8a7791_irqc_show(const char *msg, unsigned int n)
47 {
48 printk("%s:%u\n", msg, n);
49 printk("-LEVEL-- --HIGH-- --LOW--- -S-RISE- -S-FALL- -A-RISE- -A-FALL-\n");
50 printk("%08x %08x %08x %08x %08x %08x %08x\n",
51 ioread32(irqc + MONITOR), ioread32(irqc + HLVL_STS),
52 ioread32(irqc + LLVL_STS), ioread32(irqc + S_R_EDGE_STS),
53 ioread32(irqc + S_F_EDGE_STS), ioread32(irqc + A_R_EDGE_STS),
54 ioread32(irqc + A_F_EDGE_STS));
55 }
56

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip