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: 153415 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp431849ljp; Tue, 11 Dec 2018 02:07:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/WxVD9W7TZG4v7m0zBZ8RC2taWA9GHO4ll0GgqQY12aunplPSr2W2cGnHmFwB/uhYCj2fmL X-Received: by 2002:a63:e348:: with SMTP id o8mr13805672pgj.158.1544522825800; Tue, 11 Dec 2018 02:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544522825; cv=none; d=google.com; s=arc-20160816; b=tX3noYoxcVZk3pDJIOtRMZHa3/vLgyIZF9jBInnMsrQJvQq+ocH+gQbFG7kqLEHgar dLY9KfnhIKqPtojWB8khVnO7NkHMPsVrHr+pBaW1LWWNQ3EHCWlMtGdyLVtH2k5aqsg2 yXwj8zKXC0+vjDoxN3QdX2Ee9o4eSbfMgIeisCoKtHfXTyLapjTi91KmsDciqNJCfpCu tXxFTGsUcWAi6VyOi3iqDUBlBVU5Wxd8HOF11XCAnhmTcvCKHZLujM8oD8MAGdOK4Lnt +7KwA5yW+AvmOzG+fX6OjB7SFl0Usb0glyGYHtRBsik+ZgFNsBVeDYNsU4mK4313eBJa JbQg== 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 :message-id:date:subject:cc:to:from; bh=TR3MT35cxVM3yOlNXKuKwFVymKPnFgA+pU0fg32m4lI=; b=hFZNaxQw+4TSqqq+7txjdoAaWJZnHx4ppJ8sH4861EqOsewGsBUrGQw5ohQZ0b5uL6 xpxbvAU96LK5ya+YfkHvOZk5i1yhwm0z8Pilgoxnugh+yRtbEHTGWoeKLs3IdlJdkqFI 1StQozJ9x1FWtRy8BloYO/hewwxbVFmvP9XkKEPn0CcEVgiDOcJtYw/7tVTjZ3iw+wDj v0SAJ19dHaBV+G72ZCC5i14MY0uRZ8CUhT63RfkEnKUZHU7W7DKWHKWqSIwcbPhbUCHS 8FZQRPwfV76/JjMTVF+ghKjhvp7+RFYr3tBecUgurWRqFcgWFiaMpxFRJrWBGzqV8tne +vxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-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 s123si12618624pfb.274.2018.12.11.02.07.05; Tue, 11 Dec 2018 02:07:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726260AbeLKKHD (ORCPT + 5 others); 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-Spam-Flag: NO 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 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 --- drivers/usb/renesas_usbhs/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.0 Reviewed-by: Yoshihiro Shimoda 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);