public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:204:19: sparse: sparse: symbol 'loongson_dwmac_driver' was not declared. Should it be static?
@ 2021-11-19 23:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-19 23:41 UTC (permalink / raw)
  To: Qing Zhang; +Cc: kbuild-all, linux-kernel, Jiaxun Yang

[-- Attachment #1: Type: text/plain, Size: 2000 bytes --]

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 <lkp@intel.com>


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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33813 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-19 23:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-19 23:41 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:204:19: sparse: sparse: symbol 'loongson_dwmac_driver' was not declared. Should it be static? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox