[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202010080212.EJUrjW8T-lkp@intel.com>
Date: Thu, 8 Oct 2020 02:32:25 +0800
From: kernel test robot <lkp@...el.com>
To: Leon Romanovsky <leonro@...lanox.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Borislav Petkov <bp@...e.de>
Subject: drivers/net/ethernet/3com/3c515.c:421:20: warning: no previous
prototype for 'tc515_probe'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c85fb28b6f999db9928b841f63f1beeb3074eeca
commit: 1c79031f8a75c132bbd42e3ef20267af97b67466 drivers: Remove inclusion of vermagic header
date: 6 months ago
config: mips-randconfig-r014-20201008 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.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=1c79031f8a75c132bbd42e3ef20267af97b67466
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1c79031f8a75c132bbd42e3ef20267af97b67466
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/3com/3c515.c:421:20: warning: no previous prototype for 'tc515_probe' [-Wmissing-prototypes]
421 | struct net_device *tc515_probe(int unit)
| ^~~~~~~~~~~
drivers/net/ethernet/3com/3c515.c: In function 'corkscrew_start_xmit':
drivers/net/ethernet/3com/3c515.c:1052:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1052 | outl((int) (skb->data), ioaddr + Wn7_MasterAddr);
| ^
At top level:
drivers/net/ethernet/3com/3c515.c:35:18: warning: 'mtu' defined but not used [-Wunused-const-variable=]
35 | static const int mtu = 1500;
| ^~~
vim +/tc515_probe +421 drivers/net/ethernet/3com/3c515.c
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 419
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 420 #else
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 @421 struct net_device *tc515_probe(int unit)
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 422 {
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 423 struct net_device *dev = corkscrew_scan(unit);
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 424
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 425 if (!dev)
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 426 return ERR_PTR(-ENODEV);
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 427
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 428 return dev;
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 429 }
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 430 #endif /* not MODULE */
^1da177e4c3f415 drivers/net/3c515.c Linus Torvalds 2005-04-16 431
:::::: The code at line 421 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (30936 bytes)
Powered by blists - more mailing lists