From patchwork Tue Dec 11 10:06:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10723377 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60B61159A for ; Tue, 11 Dec 2018 10:07:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CE702A120 for ; Tue, 11 Dec 2018 10:07:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DF332A49B; Tue, 11 Dec 2018 10:07:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1A9C2A120 for ; Tue, 11 Dec 2018 10:07:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726260AbeLKKHD (ORCPT ); Tue, 11 Dec 2018 05:07:03 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:37667 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbeLKKHD (ORCPT ); Tue, 11 Dec 2018 05:07:03 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1N8GAQ-1hadeC0Z9s-014A9f; Tue, 11 Dec 2018 11:06:48 +0100 From: Arnd Bergmann To: Greg Kroah-Hartman Cc: Arnd Bergmann , Yoshihiro Shimoda , Felipe Balbi , Simon Horman , Chris Brandt , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: renesas_usbhs: mark PM functions as __maybe_unused Date: Tue, 11 Dec 2018 11:06:25 +0100 Message-Id: <20181211100645.650975-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:Vbe4JORRczYACtMLZonY6MMYnWxsKK66PVNaQtM1+V516jMzpjS wvVoNaKXH8JApCYiVE8Bd4ogv2yyM71uaGxnczxSbkcHQz2oGkpBxNQrqVxAvjeqFGI0MMy wOC2TVtK+r2C3bCcQjbzIDH8kCScuQJE3sw2YGA21DH77+aKtNYooA9UgE9OBVlXEcwz6EZ qv75KNK8vH4iQVybZZXbg== X-UI-Out-Filterresults: notjunk:1;V03:K0:JtnZJLwW2rw=:TBRP0Lv4qqPkQBuEm5oVQ0 zllSqVS7S2s9qk1Vaelmr3+mNcKAenLxZz88HfoFk/ppZy/xW8vBBPHTFGEb77W9rYHtLa54W JgBCup+ZbKx+v+/nitPTtI2z2ytt08ePVxgpYuzzWtHquXR9EYDPwwesd0dvgedumviArub5t bpLBySuZ+6nslHOJAk/h3ots+57im9lyjhgmgEhuYHuiu2qRbM2oql33UHt5NtYJZ+rArlIvC 8Gea5Mydmsgwi30tYmKlTG08kedGxAQA4gZLMHtJlV2XRRIuEXz8sY8rAW9rYxF1DEHt4NZen sf6ASUj09+KcRD8hYdHWVidtR8YlRdeHYb7+FesmVjo1TuINGDihytDdLhbQ5TyrW6MQgbE4Z dJWQdeMgtzoR4oUppK57ojkR9eRt1g3dilRHqJLJICehLoSPti5XyVlJ0x4FrUlJ1uz4CE2Op ggqBSzjX92rnAC8DkQU7kQzeTj6OxwdlvxFN/+dD5OUyOtqZrHbZGUL2nT71UxQKZIV1yusE8 WxxHKot5eqwVecYmkBY7NTmA4c19DA/7cQpygrcJ6qqMd2FtCwKTyHBnGr61oSr69vudvvH/q b2PmGF+qxSXcMjBsMUi2UF6fQ8sbiAHwRN0HRRCGxjmH7I6Re+Vyl+tcGKRm6vtp9PPxWvelD nMsRwScOd/lcWuyySuYRir5PZNOWfCfiM2hcDfpV71dCHdV2Qo/6hiXvN6OOII/zFXnU0geyz gQWUhoGjv0hqq/9rbYUAMLV5rpAUb9YxzGNRLg== Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Without CONFIG_PM, we get a new build warning here: drivers/usb/renesas_usbhs/common.c:860:12: error: 'usbhsc_resume' defined but not used [-Werror=unused-function] static int usbhsc_resume(struct device *dev) ^~~~~~~~~~~~~ drivers/usb/renesas_usbhs/common.c:844:12: error: 'usbhsc_suspend' defined but not used [-Werror=unused-function] static int usbhsc_suspend(struct device *dev) ^~~~~~~~~~~~~~ No idea why this never happened before, but it's trivial to work around by marking the functions as __maybe_unused so the compiler can silently discard them. Signed-off-by: Arnd Bergmann Reviewed-by: Yoshihiro Shimoda --- drivers/usb/renesas_usbhs/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 02c1d2bf4f86..2ff7991f4517 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -841,7 +841,7 @@ static int usbhs_remove(struct platform_device *pdev) return 0; } -static int usbhsc_suspend(struct device *dev) +static __maybe_unused int usbhsc_suspend(struct device *dev) { struct usbhs_priv *priv = dev_get_drvdata(dev); struct usbhs_mod *mod = usbhs_mod_get_current(priv); @@ -857,7 +857,7 @@ static int usbhsc_suspend(struct device *dev) return 0; } -static int usbhsc_resume(struct device *dev) +static __maybe_unused int usbhsc_resume(struct device *dev) { struct usbhs_priv *priv = dev_get_drvdata(dev); struct platform_device *pdev = usbhs_priv_to_pdev(priv);