linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Leon Romanovsky <leonro@mellanox.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Borislav Petkov <bp@suse.de>
Subject: drivers/net/ethernet/3com/3c515.c:421:20: warning: no previous prototype for 'tc515_probe'
Date: Thu, 8 Oct 2020 02:32:25 +0800	[thread overview]
Message-ID: <202010080212.EJUrjW8T-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-10-07 19:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202010080212.EJUrjW8T-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bp@suse.de \
    --cc=kbuild-all@lists.01.org \
    --cc=leonro@mellanox.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).