drivers/spi/spi-meson-spicc.c:570:22: sparse: sparse: symbol 'meson_spicc_pow2_clk_ops' was not declared. Should it be static?

From: kernel test robot
Date: Sat Aug 20 2022 - 19:42:32 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 15b3f48a4339e3c16acf18624e2b7f60bc5e9a2c
commit: 09992025dacd258c823f50e82db09d7ef06cdac4 spi: meson-spicc: add local pow2 clock ops to preserve rate between messages
date: 9 days ago
config: mips-randconfig-s032-20220821 (https://download.01.org/0day-ci/archive/20220821/202208210739.y85trbHY-lkp@xxxxxxxxx/config)
compiler: mips64-linux-gcc (GCC) 12.1.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.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=09992025dacd258c823f50e82db09d7ef06cdac4
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 09992025dacd258c823f50e82db09d7ef06cdac4
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/spi/

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

sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-meson-spicc.c:570:22: sparse: sparse: symbol 'meson_spicc_pow2_clk_ops' was not declared. Should it be static?

vim +/meson_spicc_pow2_clk_ops +570 drivers/spi/spi-meson-spicc.c

569
> 570 const struct clk_ops meson_spicc_pow2_clk_ops = {
571 .recalc_rate = meson_spicc_pow2_recalc_rate,
572 .determine_rate = meson_spicc_pow2_determine_rate,
573 .set_rate = meson_spicc_pow2_set_rate,
574 };
575

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