linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/ethernet/3com/3c515.c:421:20: warning: no previous prototype for 'tc515_probe'
@ 2020-10-07 18:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-07 18:32 UTC (permalink / raw)
  To: Leon Romanovsky; +Cc: kbuild-all, linux-kernel, Borislav Petkov

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

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@intel.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@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
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: 30936 bytes --]

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

only message in thread, other threads:[~2020-10-07 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07 18:32 drivers/net/ethernet/3com/3c515.c:421:20: warning: no previous prototype for 'tc515_probe' 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;
as well as URLs for NNTP newsgroup(s).