lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111051054.SLQN82oa-lkp@intel.com>
Date:   Fri, 5 Nov 2021 10:36:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     Peng Li <lipeng321@...wei.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Guangbin Huang <huangguangbin2@...wei.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

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (46316 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ