Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp136063ybc; Mon, 18 Nov 2019 21:58:00 -0800 (PST) X-Google-Smtp-Source: APXvYqz02yhKHZ/SCN89VVXd0BlPpWibS+y8O5jwjOJ6W64V4Cdfleaj8LkdLSCoQQEkwePLXK1z X-Received: by 2002:a17:906:6c95:: with SMTP id s21mr33210221ejr.205.1574143080379; Mon, 18 Nov 2019 21:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574143080; cv=none; d=google.com; s=arc-20160816; b=JGDM1I8fS//sYwC2nOuUyuH35CQPcKUCc0oYneQuauR+esUj2ZecUVr4XFjAloZqfz DOpHAHLawdl2icCuN7cptxfe9Lye/uS6waZVEDjGVkKiU2MrTdta+ebYhNQFdQ3r1SwA vAObMGwTe/wjooLiXdp+sJswBGh3j19MMsayaLazSEDFhCQnCE/c6xWs/fk9vcRpcbJd ZrtM975foyX1kdJYWwnQKhmJHXELaIl7poEPnidn1znurouES2QQ0lzlFwW+/rYfrlFi WzCStcLqz5xaUIT7dRjxg2CInnb13NSEp40cARsJZRu5OkwdgL/BYcyyt/uHuHvyq5kZ or9A== 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=wiRTRD0xBA3W9/VTSsRJSLNU6ExtSRdiDszv4qytJ/s=; b=ufohQ33vfK9LW0uYS8Kcfah32eRGNb1F2XTfTm8AJNzdXb3SVKQXdU1htl8JMj75gu 8ZIlw8zLD48txWTO3PnLL7FOU6a0MBsPNb4ytHSNy+2LUSDokBwuHwSxK5oMSAagIGfb EB6sChh1sAbZZTOk/eVKlznLQIOSEiPQHGGQI9MoiUT2yQXWxkjwEScv8n85h9w6OsY3 TELAYPmMOAPGdmURzcba+MJJ4M12uMXQckkfBtCXUL8cZdMAHNbdJ/qb/GnTkC7I38JP Kf2SUzi+42ZNJaQz2797iZf8RmBVBL3wvejPD08HVGgB2+L4oR3EO2yhJrkJ7Wv4foY3 bX6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YNec4prQ; 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 cb6si12771565ejb.359.2019.11.18.21.57.35; Mon, 18 Nov 2019 21:58:00 -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=YNec4prQ; 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 S1731885AbfKSFzl (ORCPT + 99 others); Tue, 19 Nov 2019 00:55:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:53212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732213AbfKSFy6 (ORCPT ); Tue, 19 Nov 2019 00:54:58 -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 E6109208C3; Tue, 19 Nov 2019 05:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142897; bh=TgMTOV6vcLpQIk4fl+/asFU0iDlVDGF7K2gCTffcTAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YNec4prQ07v/8RHslk2HMe1gRhreaqzQOF6r/spFOEbAszp8zN0k+7viN8d6EuZ8H pWw936fO8l4R48usbmIdAUCFu2WZOweIYWDUkGcoZzwWBVatoxrnqKpMMiy3JCvygn YRcm01GMSwiKkxDM8Y0xllUBeuLUBeg87JkUjKqQ= 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.14 238/239] net: phy: mdio-bcm-unimac: mark PM functions as __maybe_unused Date: Tue, 19 Nov 2019 06:20:38 +0100 Message-Id: <20191119051342.758447783@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051255.850204959@linuxfoundation.org> References: <20191119051255.850204959@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) diff --git a/drivers/net/phy/mdio-bcm-unimac.c b/drivers/net/phy/mdio-bcm-unimac.c index f9d98a6e67bc4..52703bbd4d666 100644 --- a/drivers/net/phy/mdio-bcm-unimac.c +++ b/drivers/net/phy/mdio-bcm-unimac.c @@ -316,7 +316,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); @@ -325,7 +325,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; -- 2.20.1