From patchwork Thu May 19 13:52:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102312 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3216432qge; Thu, 19 May 2016 06:54:33 -0700 (PDT) X-Received: by 10.66.65.109 with SMTP id w13mr19695450pas.142.1463666073421; Thu, 19 May 2016 06:54:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pk16si15245979pab.73.2016.05.19.06.54.33; Thu, 19 May 2016 06:54:33 -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 S932432AbcESNyc (ORCPT + 1 other); Thu, 19 May 2016 09:54:32 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:56354 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932419AbcESNyb (ORCPT ); Thu, 19 May 2016 09:54:31 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0McnTN-1bKeAv08LB-00HuXl; Thu, 19 May 2016 15:54:28 +0200 From: Arnd Bergmann To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 2/2] Input: migor-ts: mark PM functions as __maybe_unused Date: Thu, 19 May 2016 15:52:25 +0200 Message-Id: <1463665954-3898044-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1463665954-3898044-1-git-send-email-arnd@arndb.de> References: <1463665954-3898044-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:KbN0lpJN9J8Z0mttBpMJwRNjWZPgedBQVFKNahSUIVm2GHQPQLd 8+QdWQfGiAXWHeAIHZiHXDYulx/G6exnX1yxUbVf2XB+l07/RPwMk4Xv425w5IZ8zv3gqoM fg5g7z3r3HIivSBLuh1PoMo3LfOLX2x0CGoLBV3orKiHtYHPS/qkgECFLn/uYMEtCJqn3uW 7kK9QtiI8TmKSCaVsd8Rg== X-UI-Out-Filterresults: notjunk:1; V01:K0:mMqlCpvjj0U=:4six0KldSHzbzSIdNEss9l 8PNSXRFqVJjxosY0EiIfgxKxawnY54fLVRVwmYjIAl+fy9zLt0TC6h855P4RT1HJw7CCrlgSN +cmgM1IP7CkO5xcLHOOcrI6Sy7hW4gQPE3zzU7Xu2rQcyrC4Sdk/P9Xys8IE/gpXYvbWOYgQa n+M3dwXfjLhyF4fE2N0qKq69NcamMqQbi1RoMp8S1wGTyAAEr5n6M0Y1GiXKLWtcaJI6AD5Lq hZkXiNHZqbHukguBvY9h2ZFOo3/uK+XGzFkK79eoAX4sZJd1FFEtq+ECZLqI4Sat1zZvFpxlD snZOar26assPVS+QzziE3kEXbW30dIC2iuTCmItTsGpfEIzqkQc6buEnrdutKmnfuUrq+A/fa K8AipuEhcZ5QgJw4h+qUxwZO6pNeHlOmAteQt2NqYZvYAnZPQBegMKULsT7e09FrUNkvZjwgG 0lGra2NuF7k1NuS6qsi7+NV9B1HbzNz9lQsjvaRcnkmvFCU5Vnqld9D5jOEQXEPPk7p7Jppwt 2s4fbwklQp6ZFX8miEFfzqZmvDqcKc4VMTBXHx6u7ysLAx4Xesba3877dUy5xlUQxV7UaskYg izdpNUuEuyKJGBuGBBgxRIdX4b7JCdVbcQ6oEbGvIsJZD3NkuA8H+U0YRcR0L4PFWuAHCHD0x Jn8wV3kJys9PRoe+M4aS642AeonFgHbKZi7auYyM9VcIPF1mqgeyKwBJ6QHp2va6n2bI= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The migor touchscreen driver is now available for COMPILE_TEST, so we run into a harmless randconfig warning on ARM when CONFIG_PM is disabled: drivers/input/touchscreen/migor_ts.c:216:12: error: 'migor_ts_resume' defined but not used [-Werror=unused-function] drivers/input/touchscreen/migor_ts.c:205:12: error: 'migor_ts_suspend' defined but not used [-Werror=unused-function] This shuts up the warning by marking the two functions as __maybe_unused. We could do the same thing by adding an #ifdef, but this version is more reliable. Signed-off-by: Arnd Bergmann --- drivers/input/touchscreen/migor_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.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/migor_ts.c b/drivers/input/touchscreen/migor_ts.c index e4b92c4cae3b..02fb11985819 100644 --- a/drivers/input/touchscreen/migor_ts.c +++ b/drivers/input/touchscreen/migor_ts.c @@ -202,7 +202,7 @@ static int migor_ts_remove(struct i2c_client *client) return 0; } -static int migor_ts_suspend(struct device *dev) +static int __maybe_unused migor_ts_suspend(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct migor_ts_priv *priv = i2c_get_clientdata(client); @@ -213,7 +213,7 @@ static int migor_ts_suspend(struct device *dev) return 0; } -static int migor_ts_resume(struct device *dev) +static int __maybe_unused migor_ts_resume(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct migor_ts_priv *priv = i2c_get_clientdata(client);