From patchwork Fri Jun 9 10:32:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 103464 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp140474qgd; Fri, 9 Jun 2017 03:33:51 -0700 (PDT) X-Received: by 10.98.219.5 with SMTP id f5mr11152688pfg.2.1497004431079; Fri, 09 Jun 2017 03:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497004431; cv=none; d=google.com; s=arc-20160816; b=F8XHOp8EIvpdj8zn2HLVJt8v9vGxzn/9Jt/X3OrjgUGqC32gm3tr7ivWAciC5lpLy0 mGQtUCXMBL49KUCF2ZddZ4++kcpI8YJgyJnubVoOmCwEWIC4GLjK24oRttmWMh6Yi08x KwYVaXkbQ/hlfk816hcz3PD8dt6csInFlcPPjj1+xUiFTAZvZdYUFk45II1kRK5vaTc0 IWMk39zkTI1dgvGL1tPQ8aLihfzaozTXLpXeLHVI3ED/pB3ykHXnsmWc3oDjDlW1eDkf Rub2JcCiK9lHR6EJ3nvlo/0uWlM9cjJ/vQbD54TxGblBPLqTodADjxyX83dSKJK5/HMz WV0Q== 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 :arc-authentication-results; bh=8fXh3Gv/SosqdCMgttNHsqJvMbL+24xMvhUHGrtKEvY=; b=IsqrKHVC8Zws46ropenpVRmLLVgrW0yQJiFVQ9gTyndavREl/p2fM/D+EGRMRwcf4k ocsljOHnUc09+DeZGmVojvhuqXyJ0/ylmx0bqhunFYK1oCNtkcGOxBrE9D0yXga5vovE OGg5CACE5Q96x7xuuKzzdEefdXtdQgHYkkYK6r5SMt/Wz80ZwWaLgXDVnk3ZEnwYULZI Iu4p7PP87lX/N5xmtA2O5Bh8+YFmACBKqYkDNTaMKAgigl+PYAGCZrW95KMUO+C2y6+o ntz9w+Y0VCTVHMV0U2erL5Vn5neMQidbTGj6mknEkyj9iBKUUKxz7lYGGqOyeod0SO15 4m9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-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 a124si6937809pgc.127.2017.06.09.03.33.50 for ; Fri, 09 Jun 2017 03:33:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-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-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751528AbdFIKdu (ORCPT ); Fri, 9 Jun 2017 06:33:50 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:53013 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbdFIKdt (ORCPT ); Fri, 9 Jun 2017 06:33:49 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0LmgTP-1dsL4H1uB1-00aHdz; Fri, 09 Jun 2017 12:33:34 +0200 From: Arnd Bergmann To: Dmitry Torokhov Cc: Arnd Bergmann , Rob Herring , Javier Martinez Canillas , Andi Shyti , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: stmfts - mark all PM functions as __maybe_unused Date: Fri, 9 Jun 2017 12:32:48 +0200 Message-Id: <20170609103328.3130682-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:rrrVSPIKs3w7fGU8Sp9Rw2frUDhaxaU0uZKnWAgSOJUw1rRnQWf RT/opNjBsCJxuAZ8Dpvw/U0PaDIRNnzFfc3xHY/Crq6sOk5xift2HIIZqSiZlfHHVOkk8ch Bah2/B07ntoxxmWpFyJP/AbjThbXtQhfGG7E1J5xK5Yq7a9n7flrmN3O4yvcc3DRLmpWn1R JgASOUaN9HrNDLZzVsFfg== X-UI-Out-Filterresults: notjunk:1; V01:K0:LD8GBDHz82w=:fnN/7hKVRLGYD+UU9wuH2I orvBRuO9hvGWeO4fI4OylQiLho3NwQvCs8sa7KV7aUa7A2DTtU+t/HbLJPaABHOwwq8kkDAxF H4aWXIR4I0TRrDrMubMz72Ef/B0ObvKaZKtx5pxMjm6WOoWylVcBOKbkBYeCLKLldk8NlFXgw w0EAQ6ibTo3/JAUXunpz8Y8XJatU79r9gkNU16o88URzCJuMorv6fUe7UEA9LWex/6YB9IlRH p+eNzuoTKGu1z2DEvvHE/XCsEDAr3Ll0hH5xhpUAdboF7d8xXQCutJkPA5V/jcLeKGFCHCosf wYWelfqdWc+gGydj6mjjQsbsj+LqdiTHHf4d17vhBnk6fWYPnQ1I8HYTWeqdV/yN2ChfUwRpO tFAHLEZMC3jIHzZ/PX+7Z4nw7jh65iAWnYxEyGVPHHrBM+W7LeFAETU7vG7lxHcLvShSUPYg9 ExephPwGXkzG69yIw/wDGAmkv4ZHTtiijoSNU9OLnEQbNfjuK5xSB45RFI485JtTxI53rYKTf upLv4MAmD5RAt6vWUxzdQualm87Rqm0W212NANTo+9prmv4BwLuQmmEVmeYSNE41OHBxT/D/N Km0bFmS0IcL+xMIKRInO8g8E2ZWVauU1P76mVvyKUyyXAaBJJ9E4Iy3UHPpUZVfyEEtg3Rykc JBoKhX5OmIp2tVf1LS4tDLH1wjFp1+9XNOyigMHpdRGCelGGRwEl7EZujdCuhsPUxrIE= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org We get a harmless warning when CONFIG_RUNTIME_PM is disabled: drivers/input/touchscreen/stmfts.c:760:12: error: 'stmfts_runtime_resume' defined but not used [-Werror=unused-function] static int stmfts_runtime_resume(struct device *dev) drivers/input/touchscreen/stmfts.c:748:12: error: 'stmfts_runtime_suspend' defined but not used [-Werror=unused-function] static int stmfts_runtime_suspend(struct device *dev) The regular PM functions are already marked as __maybe_unused, so let's do the same for the runtime-PM as well. Fixes: 78bcac7b2ae1 ("Input: add support for the STMicroelectronics FingerTip touchscreen") Signed-off-by: Arnd Bergmann --- drivers/input/touchscreen/stmfts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/touchscreen/stmfts.c b/drivers/input/touchscreen/stmfts.c index 802d0e82d034..157fdb4bb2e8 100644 --- a/drivers/input/touchscreen/stmfts.c +++ b/drivers/input/touchscreen/stmfts.c @@ -745,7 +745,7 @@ static int stmfts_remove(struct i2c_client *client) return 0; } -static int stmfts_runtime_suspend(struct device *dev) +static int __maybe_unused stmfts_runtime_suspend(struct device *dev) { struct stmfts_data *sdata = dev_get_drvdata(dev); int ret; @@ -757,7 +757,7 @@ static int stmfts_runtime_suspend(struct device *dev) return ret; } -static int stmfts_runtime_resume(struct device *dev) +static int __maybe_unused stmfts_runtime_resume(struct device *dev) { struct stmfts_data *sdata = dev_get_drvdata(dev); int ret;