From patchwork Tue Nov 19 05:20:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "gregkh@linuxfoundation.org" X-Patchwork-Id: 179684 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp163512ilf; Mon, 18 Nov 2019 21:43:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxI17F1YuWs0qAGzvxJVWm05CzmBIp1a2NVopRJ63L7MmtdwkbDLldJVINzofNgA//kzN9c X-Received: by 2002:a17:906:7399:: with SMTP id f25mr33027139ejl.176.1574142207259; Mon, 18 Nov 2019 21:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574142207; cv=none; d=google.com; s=arc-20160816; b=i0DFwVWCpxRJW/ckEszJC6Qnoo5OAN9bJHLymmpX7HveC58BMpfSrL+XOOZ+AUWxfZ OWDewpXzSP+JNxsO3bcV4n8WClwVYy2O2lR/k1JCeBhnfmLGLq22+/cKbBtZxfLdQ4Uq Q7YpDPBC2ZOCZr9fV2LcFQ5uOOwKJn3bCgVwdgQDPsmGR60LgY6Z0ITMy8DsDfGihfdE rohUVNTMg3SiwxDVIMX6a0vfNyEh9JjWsNqQ312aVCsdTtBpMfYJR2RqcD5jUxfFyzTP CNmr91k/uzt6rT/yodQuhnVFbCdlmbmP70UtgeoUc41WvgtYDpRYB6orT6IvrJ8by0tW dnNA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ob+xOl7b5fFfdh/XARmdtEl1nRaUrgwdrgCt/SOukjs=; b=wbWFozlRCAe2ut2AUXpfwUOvLarN7y7ecbMyCOLcYxHsIEllL9hmoOC5Og+A8aFTtM BpIQqVmR/SLEwvootlDde/CWpvCmzQTLioB6DuSqmUuzzK6ItBu+UejzFhUExYPCM4jU P5HaCnUBbHwObr01U/muq024qHDBMZEqbjBRiAQ0BHXYP6Oey1Uy9OVowNfC8NvweDuP dN5451xpox3ZBJKxpQsfLq2B1beVI4+mKHB9f7gcnhqnGrU/iJWgCBnhhJTqBAR0XD2Q Bah62CxDOZPNwthL1wIEBqefZuKitVGSC5XodazTjN/LuB1SXnUsbxT/amdDkEMuI3Ue Qlrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JLyXBPpp; 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 rv7si185345ejb.378.2019.11.18.21.43.27; Mon, 18 Nov 2019 21:43:27 -0800 (PST) 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=JLyXBPpp; 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 S1730735AbfKSFnX (ORCPT + 26 others); Tue, 19 Nov 2019 00:43:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:38104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730707AbfKSFnO (ORCPT ); Tue, 19 Nov 2019 00:43:14 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B759B21783; Tue, 19 Nov 2019 05:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142194; bh=YoOdhLDsccXJu821EOv0qP752hFVRTq/feQk1vt7ELE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JLyXBPpp0QSE4BAJQY+Ya+frIKK+qy4JRgaUj4kblayiX1ycykXSLIAy0MiYIukEV uQDucJ7wjHSL4pdjlNrQVNG+FdKqbQ/plEJGtWrN8CkRAGbGxgayaCwT57e2vkjY+D X5fv2OWVrlQlko10baWZw9s2sLol4lo/Otl73L4w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 421/422] net: phy: mdio-bcm-unimac: mark PM functions as __maybe_unused Date: Tue, 19 Nov 2019 06:20:18 +0100 Message-Id: <20191119051426.475173994@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051400.261610025@linuxfoundation.org> References: <20191119051400.261610025@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 9b97123a584f60a5bca5a2663485768a1f6cd0a4 ] The newly added runtime-pm support causes a harmless warning when CONFIG_PM is disabled: drivers/net/phy/mdio-bcm-unimac.c:330:12: error: 'unimac_mdio_resume' defined but not used [-Werror=unused-function] static int unimac_mdio_resume(struct device *d) drivers/net/phy/mdio-bcm-unimac.c:321:12: error: 'unimac_mdio_suspend' defined but not used [-Werror=unused-function] static int unimac_mdio_suspend(struct device *d) Marking the functions as __maybe_unused is the easiest workaround and avoids adding #ifdef checks. Fixes: b78ac6ecd1b6 ("net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider") Signed-off-by: Arnd Bergmann Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/mdio-bcm-unimac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/drivers/net/phy/mdio-bcm-unimac.c b/drivers/net/phy/mdio-bcm-unimac.c index 80b9583eaa952..df75efa96a7d9 100644 --- a/drivers/net/phy/mdio-bcm-unimac.c +++ b/drivers/net/phy/mdio-bcm-unimac.c @@ -318,7 +318,7 @@ static int unimac_mdio_remove(struct platform_device *pdev) return 0; } -static int unimac_mdio_suspend(struct device *d) +static int __maybe_unused unimac_mdio_suspend(struct device *d) { struct unimac_mdio_priv *priv = dev_get_drvdata(d); @@ -327,7 +327,7 @@ static int unimac_mdio_suspend(struct device *d) return 0; } -static int unimac_mdio_resume(struct device *d) +static int __maybe_unused unimac_mdio_resume(struct device *d) { struct unimac_mdio_priv *priv = dev_get_drvdata(d); int ret;