Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3824364imm; Mon, 17 Sep 2018 03:57:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYjppDQ0ozQWBDmTM3Gx8I6vUsmEI+36d+GkHEr0btYwWxYQSaXdhFluO0aX78p/JDRyfh9 X-Received: by 2002:a62:cdcf:: with SMTP id o198-v6mr25476786pfg.12.1537181844975; Mon, 17 Sep 2018 03:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537181844; cv=none; d=google.com; s=arc-20160816; b=dP++7vLgybAcnk8pMEd+BWBS87MvGTbyql2lWwEhx7t3fKeVljt4sYFH5SxabO7MoE Ho16hJlpB5fQGzGhTt4aEMBWr7mJngo911Vm+l13eVY3m9IfqWDCXXE2FkXeSbM4Bov7 fNwJZ4A8umUePy/4WMGajrzTXIW87j/rldvtnneNwgtMk0hEf+YdDcGbXscOSCxsviN+ qwn9HdlWCCBsFjnnIpZoKXt5P95PkjDBVUDkATAFBSnZo6IISNMNYPYf1LArKuWlgEkz UXBn21peEq2ebgxMyOoWpB28zBwU51RRdYxmpmtOMnILsw0x9T5mND1WDZ5QzymVSC1R XCrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=x6d/LGY2ZUHdYkxPZZHkWOFDyic3ygLCL43i7gYuxBQ=; b=iDOiYXcsuleTUurtOdtFYSmh5DWTNR2/+B1rGo11tJ0ICObrbU3cPAaA2eq3geEKmu 31pvuLP1M5gGwCFHdSFhnPFxPtLOG/9cCKKv+wTi+CVf5J0zq7sojUCbhAx0qWbMV0/w OSgCr34qxksDHyrDxqt9XXaKO+k5y2PZdmaHnnJS2oZg9cJGw791kNhUBB0COYg/YCct dofWJY1eGSXgNmXRQEn5vsuTRdyLC4UPKWqgUjYSGk+a/I3fghlYVoRRrzSqfqLzkon5 qmOsK8IUWMYeiXdpA7fjQudOB75i6tXQeJ/0WIKJQsuQ5EoLfEx99LzDrzdDFu66sNSt BxeA== 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 z127-v6si15610060pgz.370.2018.09.17.03.57.09; Mon, 17 Sep 2018 03:57:24 -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 S1727806AbeIQQXe (ORCPT + 99 others); Mon, 17 Sep 2018 12:23:34 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12167 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726753AbeIQQXe (ORCPT ); Mon, 17 Sep 2018 12:23:34 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 51D286E5EAF57; Mon, 17 Sep 2018 18:56:40 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.399.0; Mon, 17 Sep 2018 18:56:39 +0800 From: zhong jiang To: , , CC: , Subject: [PATCH] net: ethernet: Fix a unused function warning. Date: Mon, 17 Sep 2018 18:44:19 +0800 Message-ID: <1537181059-53563-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following compile warning: drivers/net/ethernet/microchip/lan743x_main.c:2964:12: warning: ‘lan743x_pm_suspend’ defined but not used [-Wunused-function] static int lan743x_pm_suspend(struct device *dev) drivers/net/ethernet/microchip/lan743x_main.c:2987:12: warning: ‘lan743x_pm_resume’ defined but not used [-Wunused-function] static int lan743x_pm_resume(struct device *dev) Signed-off-by: zhong jiang --- drivers/net/ethernet/microchip/lan743x_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index e7dce79..001b5f7 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -2850,7 +2850,7 @@ static void lan743x_pcidev_shutdown(struct pci_dev *pdev) lan743x_hardware_cleanup(adapter); } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static u16 lan743x_pm_wakeframe_crc16(const u8 *buf, int len) { return bitrev16(crc16(0xFFFF, buf, len)); @@ -3016,7 +3016,7 @@ static int lan743x_pm_resume(struct device *dev) static const struct dev_pm_ops lan743x_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(lan743x_pm_suspend, lan743x_pm_resume) }; -#endif /*CONFIG_PM */ +#endif /* CONFIG_PM_SLEEP */ static const struct pci_device_id lan743x_pcidev_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_SMSC, PCI_DEVICE_ID_SMSC_LAN7430) }, @@ -3028,7 +3028,7 @@ static int lan743x_pm_resume(struct device *dev) .id_table = lan743x_pcidev_tbl, .probe = lan743x_pcidev_probe, .remove = lan743x_pcidev_remove, -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP .driver.pm = &lan743x_pm_ops, #endif .shutdown = lan743x_pcidev_shutdown, -- 1.7.12.4