From patchwork Mon Dec 10 20:59:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 153356 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4005624ljp; Mon, 10 Dec 2018 13:00:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/XMf/dbuTAe7SOfQDgfd7YoJxo4FyzKTP3zKULLfSjrFduUuvTVJxp4p3OZZA/8LW6t+ATa X-Received: by 2002:a17:902:6b46:: with SMTP id g6mr13504375plt.21.1544475601857; Mon, 10 Dec 2018 13:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544475601; cv=none; d=google.com; s=arc-20160816; b=n0zucolWq8evY61cReW6THxiMU1rO6Qmd1kVryqYXcgr6nnHOgo6OfFXgzJUuJC3Qf TdbMcWAS/rlRfM+MmXO7bkrAtAw7wZueaRRLPhmZ5vcL+K54NXoPPPiEJgtmNhG3lEFW 3Pk8zVlHXjTKaCvb8fJKSlehc1W6PNX9uHZr9UM5r94HQFTkma+KcGuoSwlSPvHfEcIg 9Oqxj3d2wYM/GjQo9c38PNRQWDrTvYF0MLeiJV2Akt6LgG+F+PH5zG4VyCUbsMxyQTM5 H6Z2grX+c82S5nLLTbRfxzzpuU4raJus+AuZ0U9ZS/KYO7YQNXHakkL0RMjERDtPlW3T sVPA== 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=TNMSDtu9+iw0OmpoiwT4iExS6dkcLPsNj00sER5d/QQ=; b=X0sixL4cwzr44YdbxcSl/W2lq42VMLhvSQS/rfF086+Fh+N8MTblvpkOuKeJmnliCr xM7inHtU8j+HYPWVQags7f2mQMEdkafjFw6YXTNxqFx1foYrN5LNfmfavX8fo+18dXwF gIF/AqI6S6tez1zjHb8IkxTjm/Ilj1KO3OsXhQlq1lPvx5zeXRIb8R587FzhtEDOhA54 8v8jhViob4N4KnxjHXq0u7quS/Blo8pYVwtfsnt1oYW8xeVNOLvy2CUz2fByDtYjjW1m E/yDvVaSEW49/5CqN0u/ExvSfjfAXGMLJsgYL05u+m+2MOgRWlXy2Bd+FqlTnSx4hWs0 QVPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 l8si9959800pgr.345.2018.12.10.13.00.01; Mon, 10 Dec 2018 13:00:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728908AbeLJVAB (ORCPT + 5 others); Mon, 10 Dec 2018 16:00:01 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:50355 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727538AbeLJVAA (ORCPT ); Mon, 10 Dec 2018 16:00:00 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MnWx3-1hDX7B0wuj-00jatI; Mon, 10 Dec 2018 21:59:56 +0100 From: Arnd Bergmann To: Bjorn Andersson , Linus Walleij Cc: Arnd Bergmann , Stephen Boyd , Timur Tabi , Douglas Anderson , Ricardo Ribalda Delgado , Evan Green , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: msm: mark PM functions as __maybe_unused Date: Mon, 10 Dec 2018 21:59:45 +0100 Message-Id: <20181210205955.3254660-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:xGnY+Tz4mS0nI0F6dcf1GCsrhPj67IExbLpe9y/GFJxfpEnAMqx 76oAA7L0SxJS7k2Zz/MfCziSdX/jtTn/ieutpTt++oMmsmhhiOKaBC/fBjJBbqiGaukXXLG g5lyeLZg/jVWWrIFgwgWA5gD6k9GEyMpxHT18l6ltpSsfDkJUY3MEQyZ9fdr3b/AuS1KFoP kctMdQ9DnZBC2au/bDdfg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:hn4ltawq2Mc=:cVi0eOPx6XbQ5n0O33f9rI t28ZbvMJco+LyPJi0Xih9J7+PTQPafUcpEOVQzOL5D2xDQJq6Id/ev1UWzwUdvCDF9ZOMjR64 TGjr5uV9/UGAYyK39BX5GVEQFtJoAWTGX1CCbN6OLr2N/UbUjKRhVhrlCNav3G2x5b2XF9jwp 1zgJJiJT0YpwwgnA5Xi4qwhmIJyKOfkupm5WtaVEk2DUJC2c9SL2DotddohMq6wKi2zPC8ja5 EJJZRr/n987qa7lCl0U4f12qJ/sODMwUV0bNXbERellyyPlyYNAdsLha6YAFdmOihwIn8iXmB LtTQWpon6FoZPQzIh5KrY4H7lHdCQNCrpgczPr09kplZyuizpwTGbGPKaqpthVSpDI/+Nw0c9 J109Wk/+1y6HV6ZWcgf5S0NnUsTZjOUXnuQVxIQyOU4NDnBxjlSqDSr0PWo1vGr/L36hpwyRO 9JVsHp3Iq8Llsqk0C/PcrD0azTXxFcSTAwH6MdNlpyAl5hVku7gxIndl3GUsOB2rnsxV442Pq quMnuugzKDfWQ/4vSqwennyPLR26q1uU8wCOdaw/9LGXkuinPSqVUgcV4uk1Mkm0gami0cZvq VcCn+yRFRpPrn1Bot0GNxClc8o/bnbE4fFmmOuFy1NN4cKnL9AM8NYG/b8qDrUG0zS6jPzRNf dLvaZhrqdxiSvNJN7XDx00vG0JUSeEPzEWjuOwM6epmexmfB9IiDitnWqsFLsDeF/To6BXuob J1ID8lFS8uITRUgm4IWU12IpknFW1g5aSZbQFg== Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Without CONFIG_PM_SLEEP, we get annoyting warnings about unused functions: drivers/pinctrl/qcom/pinctrl-msm.c:1082:12: error: 'msm_pinctrl_resume' defined but not used [-Werror=unused-function] static int msm_pinctrl_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~ drivers/pinctrl/qcom/pinctrl-msm.c:1075:12: error: 'msm_pinctrl_suspend' defined but not used [-Werror=unused-function] static int msm_pinctrl_suspend(struct device *dev) Mark them as __maybe_unused to shut up the warning and silently drop the functions without having to add ugly #ifdefs. Fixes: 977d057ad346 ("pinctrl: msm: Add sleep pinctrl state transitions") Signed-off-by: Arnd Bergmann --- drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.0 diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 87cbebe217fd..ee8119879c4c 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1072,14 +1072,14 @@ static void msm_pinctrl_setup_pm_reset(struct msm_pinctrl *pctrl) } } -static int msm_pinctrl_suspend(struct device *dev) +static __maybe_unused int msm_pinctrl_suspend(struct device *dev) { struct msm_pinctrl *pctrl = dev_get_drvdata(dev); return pinctrl_force_sleep(pctrl->pctrl); } -static int msm_pinctrl_resume(struct device *dev) +static __maybe_unused int msm_pinctrl_resume(struct device *dev) { struct msm_pinctrl *pctrl = dev_get_drvdata(dev);