All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peng Li <lipeng321@huawei.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Guangbin Huang <huangguangbin2@huawei.com>
Subject: drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c:406: warning: expecting prototype for hns3_nic_self_test(). Prototype was for hns3_self_test() instead
Date: Fri, 5 Nov 2021 10:36:01 +0800	[thread overview]
Message-ID: <202111051054.SLQN82oa-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d4439a1189f93d0ac1eaf0197db8e6b3e197d5c7
commit: 4c8dab1c709c5a715bce14efdb8f4e889d86aa04 net: hns3: reconstruct function hns3_self_test
date:   10 weeks ago
config: arm64-randconfig-r033-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c8dab1c709c5a715bce14efdb8f4e889d86aa04
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 4c8dab1c709c5a715bce14efdb8f4e889d86aa04
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/net/ethernet/hisilicon/hns3/

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/hisilicon/hns3/hns3_ethtool.c:406: warning: expecting prototype for hns3_nic_self_test(). Prototype was for hns3_self_test() instead


vim +406 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c

   397	
   398	/**
   399	 * hns3_nic_self_test - self test
   400	 * @ndev: net device
   401	 * @eth_test: test cmd
   402	 * @data: test result
   403	 */
   404	static void hns3_self_test(struct net_device *ndev,
   405				   struct ethtool_test *eth_test, u64 *data)
 > 406	{
   407		int st_param[HNS3_SELF_TEST_TYPE_NUM][2];
   408		bool if_running = netif_running(ndev);
   409	
   410		if (hns3_nic_resetting(ndev)) {
   411			netdev_err(ndev, "dev resetting!");
   412			return;
   413		}
   414	
   415		/* Only do offline selftest, or pass by default */
   416		if (eth_test->flags != ETH_TEST_FL_OFFLINE)
   417			return;
   418	
   419		hns3_selftest_prepare(ndev, if_running, st_param);
   420		hns3_do_selftest(ndev, st_param, eth_test, data);
   421		hns3_selftest_restore(ndev, if_running);
   422	}
   423	

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c:406: warning: expecting prototype for hns3_nic_self_test(). Prototype was for hns3_self_test() instead
Date: Fri, 05 Nov 2021 10:36:01 +0800	[thread overview]
Message-ID: <202111051054.SLQN82oa-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d4439a1189f93d0ac1eaf0197db8e6b3e197d5c7
commit: 4c8dab1c709c5a715bce14efdb8f4e889d86aa04 net: hns3: reconstruct function hns3_self_test
date:   10 weeks ago
config: arm64-randconfig-r033-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c8dab1c709c5a715bce14efdb8f4e889d86aa04
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 4c8dab1c709c5a715bce14efdb8f4e889d86aa04
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/net/ethernet/hisilicon/hns3/

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/hisilicon/hns3/hns3_ethtool.c:406: warning: expecting prototype for hns3_nic_self_test(). Prototype was for hns3_self_test() instead


vim +406 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c

   397	
   398	/**
   399	 * hns3_nic_self_test - self test
   400	 * @ndev: net device
   401	 * @eth_test: test cmd
   402	 * @data: test result
   403	 */
   404	static void hns3_self_test(struct net_device *ndev,
   405				   struct ethtool_test *eth_test, u64 *data)
 > 406	{
   407		int st_param[HNS3_SELF_TEST_TYPE_NUM][2];
   408		bool if_running = netif_running(ndev);
   409	
   410		if (hns3_nic_resetting(ndev)) {
   411			netdev_err(ndev, "dev resetting!");
   412			return;
   413		}
   414	
   415		/* Only do offline selftest, or pass by default */
   416		if (eth_test->flags != ETH_TEST_FL_OFFLINE)
   417			return;
   418	
   419		hns3_selftest_prepare(ndev, if_running, st_param);
   420		hns3_do_selftest(ndev, st_param, eth_test, data);
   421		hns3_selftest_restore(ndev, if_running);
   422	}
   423	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

             reply	other threads:[~2021-11-05  2:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-05  2:36 kernel test robot [this message]
2021-11-05  2:36 ` drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c:406: warning: expecting prototype for hns3_nic_self_test(). Prototype was for hns3_self_test() instead kernel test robot

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=202111051054.SLQN82oa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=huangguangbin2@huawei.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lipeng321@huawei.com \
    --cc=llvm@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.