Received: by 10.213.65.68 with SMTP id h4csp1031631imn; Wed, 21 Mar 2018 00:21:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELsWIi9bU0PeDKtUpjjZY5sXHojVokaRLJQjb44eYCpVUseoeU87vNZR3SIpYIxAbekzQ+sN X-Received: by 2002:a17:902:684d:: with SMTP id f13-v6mr9628786pln.230.1521616913454; Wed, 21 Mar 2018 00:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521616913; cv=none; d=google.com; s=arc-20160816; b=ppNW5i2G8QlDuW3K3cxCyjzVw8UXRV+w1gZCmEFsnnVxlOh17hPfMXC41EtbtP/20e JwmeOsQB3p7mlWPNOrmKjfilsUgzSTrssg06Ry0Xy8iMBYXLCNSHFeYY7nJT973T3d0a GdMlw3kZiKhBU+6+Ct31xiPbcJj23tVPjemmtzZwVGBnoh9xrYmbhue5ikfjti63+sPx KtNlJnqt5ORG1+Y/iTnQMGz4+x4Le9r2NX3rl3bCOIHpbRgVXyXKyycp8RD3PWtS1Bvz 8CbxXwIAlxloN7B3wYya1lUFkb0EN49TgZeYHTRps0TM5nbSgPp2epTNszjsLaoL/I0i k5UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=PMMlZshLrwXJwGtDNzG1G4Sf9Yq48d6O8+pULAb5Ai8=; b=AkccNL6i9QFG2NYvyyZT/U+avYCdSNw6JNRavXJYCZ6VeyHDnMDLV+95MzRm4yzY8r yPOmLKsHP/lHxN2aQOeM9NxOl7sJORmTWT2whAcRR4HVbd73pK3vIC/2JrbQaTxs5+3B tEbQ/Ct50w8tCJXAC57FknCP1gqLh6vco5EhfFv8FwTphNaLEIXtkDsypdbYryTdPWRD CTLX11kI1FB1ETRGKLnUAaj3/0oDis1KVUCtX6ktzj2n/HVjSrOry8ba3/Gwz1f9ELWP M0b+Ukwss8OtPJg8ssSrVebSMh/HYzI+BUnjrWT+wu9kWEDubyw11lgRSo5koqdF7J1v 9BNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y92-v6si564695plb.198.2018.03.21.00.21.39; Wed, 21 Mar 2018 00:21:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751729AbeCUHS1 (ORCPT + 99 others); Wed, 21 Mar 2018 03:18:27 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6661 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751411AbeCUHSP (ORCPT ); Wed, 21 Mar 2018 03:18:15 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BF60F9BD74947; Wed, 21 Mar 2018 15:18:00 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Wed, 21 Mar 2018 15:17:52 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 04/11] net: hns3: export pci table of hclge and hclgevf to userspace Date: Wed, 21 Mar 2018 15:49:23 +0800 Message-ID: <1521618570-129694-5-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521618570-129694-1-git-send-email-lipeng321@huawei.com> References: <1521618570-129694-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yunsheng Lin There is no module that is dependent on hclge or hclgevf's symbol, but hns_enet need them to provide ops for it to run. When there is a need to auto load the hns3 driver, the auto load will fail because hclge or hclgevf is not loaded. Hns_enet has already exported the pci table, so this patch exports the pci table for hclge and hclgevf module too. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 588f231..869e98a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -55,6 +55,8 @@ static const struct pci_device_id ae_algo_pci_tbl[] = { {0, } }; +MODULE_DEVICE_TABLE(pci, ae_algo_pci_tbl); + static const char hns3_nic_test_strs[][ETH_GSTRING_LEN] = { "Mac Loopback test", "Serdes Loopback test", diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index c96cf03..14b0e26 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -18,6 +18,8 @@ static const struct pci_device_id ae_algovf_pci_tbl[] = { {0, } }; +MODULE_DEVICE_TABLE(pci, ae_algovf_pci_tbl); + static inline struct hclgevf_dev *hclgevf_ae_get_hdev( struct hnae3_handle *handle) { -- 2.9.3