From patchwork Wed Sep 26 13:14:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 147597 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp710276lji; Wed, 26 Sep 2018 06:14:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV61yuoJBJJ+WhGzNk6Zvcz3sjlboyEWvZN1rD7shWPWVvvRmzwSFfQraNbstj52JTigi1FkH X-Received: by 2002:a62:3545:: with SMTP id c66-v6mr6227639pfa.63.1537967683022; Wed, 26 Sep 2018 06:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537967683; cv=none; d=google.com; s=arc-20160816; b=ft0pYdDNlhw+ZvfhZGBovo2xpIMhB9Y7wQ6MWfSpoEpwSbfZrspcF4+3p+Pw0Oi/f9 0+YKOB5BOUHIEO5AnYYNufIF5MQAyGuXjLsRNxWf0yrDUcpnQ7UMjU97q+j6guKuIlkX EkvytGsm6LLDe4NQ9W5JnknE3uixxbIOBQCtzuy3vtr0JMp2gaXgAP6VjyAbc3d51HgE BjBEUMujW9JQXR3Wkg7GGbwoW8TClE5slGQ94BprbstAHEaHdrysYjj4x8cL4YpCdIpJ QkasfcMrRJQ/O6uIyHQuLeUueHROF4RCahXYxw5SeG9oHVycyEcxtzlFWn5HdYWRRrsE VeSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=o06ykudVihhNXO0dCFLlGdOMe14N1sK/fXzU2c4jZzQ=; b=VoOx3LJOdQq0Q1vGt1tritEBXoJeb+VpwxpCSmatK/+InCgN6oL6jJ6d2JrShbqebp y7Z4uRZVRTXbdbHuMlh5B19jfFqEqZUoOyJhoSR0Hp1aETsRbwByhj0jC+NpNhE/XbCx bhWB31JzDb2LeCxfczVHiiQB8QSHEDOzlk0uhT4xxYhmYrTOvxtbmHS9mT7DtopaIF77 jJ+LMw6SktfZM/HqBX/goChwBfCEafqTEbpO/iNltGsxCyaZdBGhpXAeb3RHewp8xXLP ihmfpEGuevQKVvR8Nu1WFu+vhIpCkPNTQ1pAmADrBJjXiQngHSZR760eBrbtvtzRfO+t Y1jA== 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 j16-v6si5282230pgg.350.2018.09.26.06.14.42; Wed, 26 Sep 2018 06:14:43 -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 S1728357AbeIZT1d (ORCPT + 32 others); Wed, 26 Sep 2018 15:27:33 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:35891 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbeIZT1d (ORCPT ); Wed, 26 Sep 2018 15:27:33 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MPosX-1gQPh10NGN-00Mv6Z; Wed, 26 Sep 2018 15:14:20 +0200 From: Arnd Bergmann To: Andrew Lunn , Florian Fainelli , "David S. Miller" Cc: Arnd Bergmann , Wei Yongjun , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: phy: mdio-bcm-unimac: mark PM functions as __maybe_unused Date: Wed, 26 Sep 2018 15:14:10 +0200 Message-Id: <20180926131418.2729391-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:ebT/N5gSq7NmVYkcaKvNGao1kRGVvHjT+/iWvjLtvjpM/dog2t/ xlzPZvdLCOmOp+DyaNWNfhhCcUkgrEa+bar4umZ2tiGj5Z8rjJx0VbGWGoRrEWaeGTW4fQF NArkMW6upOTDm84ju9Hzye3fB2sN7/qziRMvnES7QK+9nBUUQJOGGdWCVWHovnNbbkoiL6J ZmzZggZtPv+u9utVb8Rpw== X-UI-Out-Filterresults: notjunk:1; V01:K0:2SfNT8LIG1c=:LrGM8b/dxHc8HEqSe8KF6R /EVTGPLDrNFCaNJhMHFh8IcfSl+27H072WlXFcMoS2QondStw1yRU4wlvOD9QxsVAdrpI4V28 dKKp8tNLfQOe5QYhRLXayZG1RZfY3lKDJAqgMburzXs+qjVbJVwSuvNSHWYxr6iqTfr23uuyl DsXB1w/zPsyhghI8PJX65uOBAevsBHGWLe5ZZ7QQ69zh3z3RAc6VKJIG4ockLMSQHcmh3esfN TqaL1Ca6ZJbXTlhGLd/Q8WhnS9sikP/J470qI3h61JUYO6tXLhuvujvcPAtT/N2yVmzbaT5cz rYvvPKK3RghuEY7bjDeA1X4Mau8zLXMEw3i3LFSwsnIUCmqbhAQK4/Lzl9MrK8i4SqBJv6tnw c1eZ4S2h7zj/DcNKk1JmLvKuVAw3nhYVXzXkgLLBpCNBo/RwIl7+MOj256KuW0wmiF5HMTzMB UP+JbQTUb4as9yfxBsOzoDWYEhylIsyQKUeGfGcN042Ptei15+W3QiRO+YLCx1YWn8Iv/RXs1 tEVmyS72N8Ls2D2VYkItBwkCOl1uZbJAy28StoLkd/ChAtzXwTk73r55HTbJ4px4OSzYfVC/w RbGIuGA6u/1aC0Qopsn1NdIr8ssMO1Sgv+Q8PjWi4cqMUVEkO0uXhEo0BZzJpSXc25KFrfZeX fv3pLT/a4ySu2La0XpDPjYIC5Y7pZ3SfzNRUMLx1/6rdMUcwRvumCqTuaHlgnrVz5aYE= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/phy/mdio-bcm-unimac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.18.0 diff --git a/drivers/net/phy/mdio-bcm-unimac.c b/drivers/net/phy/mdio-bcm-unimac.c index 80b9583eaa95..df75efa96a7d 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;