tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9539ba4308ad5bdca6cb41c7b73cbb9f796dcdd7 commit: 30bba69d7db40e732d6c0aa6d4890c60d717e314 stmmac: pci: Add dwmac support for Loongson date: 5 months ago config: ia64-randconfig-s032-20211116 (attached as .config) compiler: ia64-linux-gcc (GCC) 11.2.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-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=30bba69d7db40e732d6c0aa6d4890c60d717e314 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 30bba69d7db40e732d6c0aa6d4890c60d717e314 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/net/ethernet/stmicro/stmmac/ kernel/bpf/ lib/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:204:19: sparse: sparse: symbol 'loongson_dwmac_driver' was not declared. Should it be static? vim +/loongson_dwmac_driver +204 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c 198 199 static SIMPLE_DEV_PM_OPS(loongson_dwmac_pm_ops, loongson_dwmac_suspend, 200 loongson_dwmac_resume); 201 202 static const struct pci_device_id loongson_dwmac_id_table[] = { 203 { PCI_VDEVICE(LOONGSON, 0x7a03) }, > 204 {} 205 }; 206 MODULE_DEVICE_TABLE(pci, loongson_dwmac_id_table); 207 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org