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: <201809290339.zTlkKfWX%fengguang.wu@intel.com>
Date:   Sat, 29 Sep 2018 03:43:43 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Fuyun Liang <liangfuyun1@...wei.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org,
        Peng Li <lipeng321@...wei.com>,
        Salil Mehta <salil.mehta@...wei.com>
Subject: [net-next:master 729/738]
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:496:31: error:
 'HNAE3_REVISION_ID_21' undeclared; did you mean 'FADT2_REVISION_ID'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   5362700c942b2cc4bab328361545a6d6fe649534
commit: 4dc13b9668d8ba7a5d1a26b88fa30baa8a214dcc [729/738] net: hns3: Add serdes parallel inner loopback support
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 4dc13b9668d8ba7a5d1a26b88fa30baa8a214dcc
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 'hclge_get_sset_count':
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:496:31: error: 'HNAE3_REVISION_ID_21' undeclared (first use in this function); did you mean 'FADT2_REVISION_ID'?
      if (hdev->pdev->revision >= HNAE3_REVISION_ID_21 ||
                                  ^~~~~~~~~~~~~~~~~~~~
                                  FADT2_REVISION_ID
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:496:31: note: each undeclared identifier is reported only once for each function it appears in

vim +496 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

   476	
   477	static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset)
   478	{
   479	#define HCLGE_LOOPBACK_TEST_FLAGS (HNAE3_SUPPORT_APP_LOOPBACK |\
   480			HNAE3_SUPPORT_PHY_LOOPBACK |\
   481			HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK |\
   482			HNAE3_SUPPORT_SERDES_PARALLEL_LOOPBACK)
   483	
   484		struct hclge_vport *vport = hclge_get_vport(handle);
   485		struct hclge_dev *hdev = vport->back;
   486		int count = 0;
   487	
   488		/* Loopback test support rules:
   489		 * mac: only GE mode support
   490		 * serdes: all mac mode will support include GE/XGE/LGE/CGE
   491		 * phy: only support when phy device exist on board
   492		 */
   493		if (stringset == ETH_SS_TEST) {
   494			/* clear loopback bit flags at first */
   495			handle->flags = (handle->flags & (~HCLGE_LOOPBACK_TEST_FLAGS));
 > 496			if (hdev->pdev->revision >= HNAE3_REVISION_ID_21 ||
   497			    hdev->hw.mac.speed == HCLGE_MAC_SPEED_10M ||
   498			    hdev->hw.mac.speed == HCLGE_MAC_SPEED_100M ||
   499			    hdev->hw.mac.speed == HCLGE_MAC_SPEED_1G) {
   500				count += 1;
   501				handle->flags |= HNAE3_SUPPORT_APP_LOOPBACK;
   502			}
   503	
   504			count += 2;
   505			handle->flags |= HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK;
   506			handle->flags |= HNAE3_SUPPORT_SERDES_PARALLEL_LOOPBACK;
   507		} else if (stringset == ETH_SS_STATS) {
   508			count = ARRAY_SIZE(g_mac_stats_string) +
   509				hclge_tqps_get_sset_count(handle, stringset);
   510		}
   511	
   512		return count;
   513	}
   514	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ