From patchwork Mon Sep 12 15:32:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101808 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp910023qgf; Mon, 12 Sep 2016 08:34:27 -0700 (PDT) X-Received: by 10.66.136.49 with SMTP id px17mr34157508pab.83.1473694467559; Mon, 12 Sep 2016 08:34:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b194si3728101pfb.196.2016.09.12.08.34.27; Mon, 12 Sep 2016 08:34:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934192AbcILPd6 (ORCPT + 4 others); Mon, 12 Sep 2016 11:33:58 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:49348 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932628AbcILPdy (ORCPT ); Mon, 12 Sep 2016 11:33:54 -0400 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0MbhXp-1bQz0z3A97-00IzR6; Mon, 12 Sep 2016 17:33:40 +0200 From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Arnd Bergmann , Songjun Wu , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] [media] atmel-isc: mark PM functions as __maybe_unused Date: Mon, 12 Sep 2016 17:32:58 +0200 Message-Id: <20160912153322.3098750-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160912153322.3098750-1-arnd@arndb.de> References: <20160912153322.3098750-1-arnd@arndb.de> X-Provags-ID: V03:K0:CCzcV6KN4FZzBxjRx9edufcU9p9SGxrqV2hEiBuXvLaKdLKfD8p lrMOYSkVX8Sa6Zx7yA+crWRhZgQjmHF8NRmEDPaMEu7FrgtFCdIalQV7VMYrVVBZXrulAr+ YlyCsBQdXQSdL6I5k/q+H8+GijG0Zw35wOhyb5A93XsOfYZJdCD5X8Pan5WE+bgW1UCovC/ SPTIBzsZAxiqUgqvBf3hQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:mWzhSz8Y4I0=:WTibrDM+AxWXqXgC9wr8aX 63gbri1LlQgKw+2CnEAXGIYjNJnfGG66fbwncbtKuoZC2eblMCngnAwpiYX7Ay0vucTKVw68a Mry9hj6yGo4yedXLJGx5Co95wOQZrUa8bc3SL+Q5QC9FhwkXB8NwrHCemDK4qlmCdnckdTS0P 62NpmZXbUSqhNOaxEg4RBJhbPDU2mdKcctsSDuh3uRiBcGxUalTRwsBchkPSWL9ehrFyaOWLJ vMkCcThKeSc4N2LbUKdtaFbDNajBsBiD9qgQEgGPzypN0RXf0o5tRW6hO7oIaWwF7ldMZbXGJ hDzQIXxELr9wxk8jHMkPF8abqjwhvne2zUPuXBrZ3nOxgkq3cVRRNFxviuQlrbVroQHpAK7fh cz5otzdx7eD51nC87jxDdPJuCV1xk1Y4jvFPCSSn76+9AOG7Lw18/T8UDZyDkipSuGlHrR4XA wR7cV+SyThIe21cyoBu20mIJahsOyvpG0Kc7M65yvEzCbsepSzMXB2R9XaVK9OuNbttr8SZx0 OolvJRnH5gGgbkLRdW/AQwp3WWUGWVo7Rt0M25fqhsESdqMCwBSz1n9dlP9xdFH354QGhJ1it 89/UDyxi4b86aNnTSbMxL3VBe9xA69E5ICnTpZZElrKkY34weCjdccJj5OBi/S3d1sazXkMrB AyUANEcgzfSYLRA1QYpB8ec6r/obaK3/H5+UwuBP0hJzDzxuHarhde6uSc5Ix5OHp2cM= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The newly added atmel-isc driver uses SET_RUNTIME_PM_OPS() to refer to its suspend/resume functions, causing a warning when CONFIG_PM is not set: media/platform/atmel/atmel-isc.c:1477:12: error: 'isc_runtime_resume' defined but not used [-Werror=unused-function] media/platform/atmel/atmel-isc.c:1467:12: error: 'isc_runtime_suspend' defined but not used [-Werror=unused-function] This adds __maybe_unused annotations to avoid the warning without adding an error-prone #ifdef around it. Signed-off-by: Arnd Bergmann --- drivers/media/platform/atmel/atmel-isc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-media" 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/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c index db6773de92f0..a9ab7ae89f04 100644 --- a/drivers/media/platform/atmel/atmel-isc.c +++ b/drivers/media/platform/atmel/atmel-isc.c @@ -1464,7 +1464,7 @@ static int atmel_isc_remove(struct platform_device *pdev) return 0; } -static int isc_runtime_suspend(struct device *dev) +static int __maybe_unused isc_runtime_suspend(struct device *dev) { struct isc_device *isc = dev_get_drvdata(dev); @@ -1474,7 +1474,7 @@ static int isc_runtime_suspend(struct device *dev) return 0; } -static int isc_runtime_resume(struct device *dev) +static int __maybe_unused isc_runtime_resume(struct device *dev) { struct isc_device *isc = dev_get_drvdata(dev); int ret;