Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1932923ima; Thu, 25 Oct 2018 07:13:46 -0700 (PDT) X-Google-Smtp-Source: AJdET5daeprwL8z8LKV2aiS3bwui8i2h7iTD/+qXM8f0Wxcw5mYJHOxuBge17CC93r2zBCwS0hih X-Received: by 2002:a17:902:76c3:: with SMTP id j3-v6mr1690834plt.339.1540476826792; Thu, 25 Oct 2018 07:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540476826; cv=none; d=google.com; s=arc-20160816; b=PvD3kRzahyaUg5aliylJ41nXBYOKW1iuNxO7NAdmSpWcDe6TZaIogYWdbMakjMTUBI 60Wtbaq2p73VcWiysuYjRRZzAI/g98SeBg8eQEg0f8m31Of7afxeyogK1JKAW6v9UDLr 4XoD1TxI7vD0sqVy5amiwVTrl/d8d6otxz2wBc2PoPPKevyhHTi5nG0IgWBeW1zRYHoW rPqGfQKHM7R2ZBZzmchsBlBdjwN4oQ790jA4zpDKnbB+UPYFtlRlkdixwckqI6zNxqr+ fXjSFOHpi0ZLg3+YeYB/98CE4WlFmObrU5eHOgjNAJEgT/pTXamOD+eAL0jqWZ19Ha/Z s5sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=tMJGTDumGAA+VMq4BoFFebXnj/XHqo9sZGseiq0Az5Y=; b=EQICenyw3vMWD32XWBkWgYcGdPEcYk4UV6BJB1H6ReaTLWaVYOW8KwI4F5yFzfN9mA TPBPtunHspdT49WiZwt93gKs1N5/JCvuoXaxnuXNgS7qokjC4Euf8uJ9Wim4tqjqk89K lJjGgYgXU+9NjOfuXA1XQQ9GaAsiaMc01qsA4byYpJEqxnlPtdP/arX0t9HaRW052Yiq mzZqkYDuXOm8kP8TMxsQh9HBG6jGZGUlnZq27XabVn7Hws37jhXLH0xCwOwMl8DQTL8q P6qPIoh4tVxswUYhsuLlqPaXqGaQ95PPF1JyrKp9m8tCNwP05AOEeSRiszoAGqP+/e0v 7AEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q1Ipl0SS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si8004500plo.109.2018.10.25.07.13.06; Thu, 25 Oct 2018 07:13:46 -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; dkim=pass header.i=@kernel.org header.s=default header.b=q1Ipl0SS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728437AbeJYWov (ORCPT + 99 others); Thu, 25 Oct 2018 18:44:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:53930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728299AbeJYWou (ORCPT ); Thu, 25 Oct 2018 18:44:50 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C93C20848; Thu, 25 Oct 2018 14:11:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476715; bh=B2QTmEZixvlvUtgeh6v/k8Y0XDg4ZjFGjpTt9H+xO/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q1Ipl0SSzLCwfLNYIdRwnbnX8BTC8mP8T9yc49JEGw6o5Nrzv/UvUEkAWxqCbAsjL ksYuacRsUy98VCNdHN6gKq+E770Wk3+JdQSSJUi9cLib3BvIFAqo+HzlcXYI79CIaE Pf1B9SEcMXfPrZejZALUZdyBjcGvsH1FKD8vlHJ0= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 4.14 43/46] net: stmmac: mark PM functions as __maybe_unused Date: Thu, 25 Oct 2018 10:10:50 -0400 Message-Id: <20181025141053.213330-43-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141053.213330-1-sashal@kernel.org> References: <20181025141053.213330-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 81a8b0799632627b587af31ecd06112397e4ec36 ] The newly added suspend/resume functions cause a build warning when CONFIG_PM is disabled: drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:324:12: error: 'stmmac_pci_resume' defined but not used [-Werror=unused-function] drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:306:12: error: 'stmmac_pci_suspend' defined but not used [-Werror=unused-function] Mark them as __maybe_unused so gcc can drop them silently. Fixes: b7d0f08e9129 ("net: stmmac: Fix WoL for PCI-based setups") Signed-off-by: Arnd Bergmann Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c index 6a393b16a1fc..c54a50dbd5ac 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c @@ -303,7 +303,7 @@ static void stmmac_pci_remove(struct pci_dev *pdev) pci_disable_device(pdev); } -static int stmmac_pci_suspend(struct device *dev) +static int __maybe_unused stmmac_pci_suspend(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); int ret; @@ -321,7 +321,7 @@ static int stmmac_pci_suspend(struct device *dev) return 0; } -static int stmmac_pci_resume(struct device *dev) +static int __maybe_unused stmmac_pci_resume(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); int ret; -- 2.17.1