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: 9326839 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9EA6A6089F for ; Mon, 12 Sep 2016 15:34:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90B8D28C5F for ; Mon, 12 Sep 2016 15:34:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8542028D84; Mon, 12 Sep 2016 15:34:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2686028D79 for ; Mon, 12 Sep 2016 15:34:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934192AbcILPd6 (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;