From patchwork Wed Jul 1 09:04:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 11635859 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18625739 for ; Wed, 1 Jul 2020 09:16:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E5CD020722 for ; Wed, 1 Jul 2020 09:16:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jpDGKpwk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5CD020722 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=distanz.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=PYfIKtEfNgPQgeHsu6dBt54rgz8VE1eM6xD9Ak5XX48=; b=jpDGKpwkF3nzzRjWxVrSZBfI1t 29VZ2/k7/THRDHjLiybRfmAnHzgg6ma05Tv+GHmhdHX3wb3pelXlxE5hCYFfNSD6mlwCiShsc1rxh Mdup2BzEdhOp+7Ew06YOnmdKICvCrLNsZkn9ENBvx9DitIJKASmf0Ks/RtvnSO04nl3JcR9WqFggf 7ixKZC9qJsuDvDTTtB4+2XeKVcOzsbn/CVrzWTDksThguc6Rzq2XXpxBomyqqNBG202yQsrBJ+egY GaRzHek5lGOsV7cqVG8jW6Zf8Sda6kgtJN3Q7VRFDTKKLmYtn73XkP86g6wvM8tMsXjoSidreHgNU UNoCkV/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqYpp-000501-Dk; Wed, 01 Jul 2020 09:15:17 +0000 Received: from sym2.noone.org ([178.63.92.236]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqYfZ-0007Z5-EL for linux-arm-kernel@lists.infradead.org; Wed, 01 Jul 2020 09:04:45 +0000 Received: by sym2.noone.org (Postfix, from userid 1002) id 49xZzp5Bkvzvjc1; Wed, 1 Jul 2020 11:04:38 +0200 (CEST) From: Tobias Klauser To: Anurag Kumar Vulisha , Laurent Pinchart Subject: [PATCH] phy: zynqmp: Fix unused-function compiler warning Date: Wed, 1 Jul 2020 11:04:38 +0200 Message-Id: <20200701090438.21224-1-tklauser@distanz.ch> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200701_050441_751625_B8FCE76D X-CRM114-Status: GOOD ( 12.87 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Vinod Koul , Michal Simek , linux-arm-kernel@lists.infradead.org, Kishon Vijay Abraham I Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This fixes the following compiler warning when building with CONFIG_PM && !CONFIG_PM_SLEEP: drivers/phy/xilinx/phy-zynqmp.c:830:12: warning: ‘xpsgtr_resume’ defined but not used [-Wunused-function] 830 | static int xpsgtr_resume(struct device *dev) | ^~~~~~~~~~~~~ drivers/phy/xilinx/phy-zynqmp.c:819:12: warning: ‘xpsgtr_suspend’ defined but not used [-Wunused-function] 819 | static int xpsgtr_suspend(struct device *dev) | ^~~~~~~~~~~~~~ Signed-off-by: Tobias Klauser Reviewed-by: Laurent Pinchart --- drivers/phy/xilinx/phy-zynqmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/xilinx/phy-zynqmp.c b/drivers/phy/xilinx/phy-zynqmp.c index 8babee2ce9ec..22a0ae635797 100644 --- a/drivers/phy/xilinx/phy-zynqmp.c +++ b/drivers/phy/xilinx/phy-zynqmp.c @@ -815,7 +815,7 @@ static struct phy *xpsgtr_xlate(struct device *dev, * Power Management */ -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int xpsgtr_suspend(struct device *dev) { struct xpsgtr_dev *gtr_dev = dev_get_drvdata(dev); @@ -854,7 +854,7 @@ static int xpsgtr_resume(struct device *dev) return 0; } -#endif /* CONFIG_PM */ +#endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops xpsgtr_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(xpsgtr_suspend, xpsgtr_resume)