From patchwork Wed Feb 28 23:19:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10250085 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 DDF8960212 for ; Wed, 28 Feb 2018 23:20:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAA2728C46 for ; Wed, 28 Feb 2018 23:20:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCA3128E88; Wed, 28 Feb 2018 23:20:34 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable 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 A8E1328E8D for ; Wed, 28 Feb 2018 23:20:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964926AbeB1XUB (ORCPT ); Wed, 28 Feb 2018 18:20:01 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:43453 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964887AbeB1XUA (ORCPT ); Wed, 28 Feb 2018 18:20:00 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0MF8bn-1ewtNb2bNb-00GFn5; Thu, 01 Mar 2018 00:19:52 +0100 From: Arnd Bergmann To: Jacopo Mondi , Mauro Carvalho Chehab Cc: Arnd Bergmann , Miguel Ojeda , Hans Verkuil , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: renesas-ceu: mark PM functions as __maybe_unused Date: Thu, 1 Mar 2018 00:19:37 +0100 Message-Id: <20180228231951.460060-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:OwxZZPCuJjqynJFvTphawLGuKuYFqbLVrgZkEp4vwOh4FS4TvYO kqc2GDK8pfjLV03ANGLNm0thPAroVCj6c3YOutB5c34y6HdQzAwRBOJ3nP0P978/kkXunKU gMUrBXr3TVS4/7edXFmFa5bnw7UTodeVZZKD2vHc+Lx5vXr450yARu0U8RRTtCXElU1smno YVneLBCDtlgaiM1Iy+eig== X-UI-Out-Filterresults: notjunk:1; V01:K0:1NstrN1UIOg=:T1+H0t5i5r6gYkqexVveXs ZHjnl0YaeSqGYcFK2D9OG3KBGrsoxZszJ1uNRXP4Aw3+Pxi+vCu7OJMlRQfDLny5n+nzJLKIs gYR55OWJWlsBxQvfNsZphaEAJzwXWiNZ7ZiqWIUm1nDmTQTdX5irSQ7aAclHLqF52SBGK8iLO Mo9CztG60/OFyhKzoC/2ytapNJS5WOhGqGll9xfd4u9A/cJ2flhGxLNkQ6hAovrUsSqhn64bi hkFCahoBmfbXk1dqRYotRC4voUXTf8pMbx1bb+ZTuzxUpPHJFeRFr9Vi/zJVUi9w++82qCVSf uXq+Lt6PvPu1UmTB6D6NAZuDp+cslDElmLe8ssDNMWvAMJhoWn7DOZtyazRhlMrHF4BOdWQhs fkcep7TsuPp0hcydToefZqOzPRUYclywCErUsotoucF9UIagi+DnZCKEd6v3xexYU3ONfxAhH lVeNn4LCe+rxJRDWnm8d4gu98WATpe3wFN4VLO4IIcxlFZMErYYmNAh6hhvK9unjDFFHFr5qK 19PrfaFczd2YAKKIN88Mo2JXYWBd6xQKkCt0avpzGA4HN9IoIjrdDva5EF4eVo9roi3+OonXD jiaFE9k6rVtkdsqn6NraZ0xVhUeLCRn39xAsO5oDpeeKaiDx1u2JpgtAjCcibItLle0JLHeP3 PbEzOM1PkgT0m7u8ATWswg/0Kgbt6/zhjwyfkUDS31OYZij4NKvvbnyi/1mrI5c4PxBJjD9du jHgx3xFfotRlgXNh+4LK63R74b/D+YORhCe9Ag== 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 PM runtime operations are unused when CONFIG_PM is disabled, leading to a harmless warning: drivers/media/platform/renesas-ceu.c:1003:12: error: 'ceu_runtime_suspend' defined but not used [-Werror=unused-function] static int ceu_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~ drivers/media/platform/renesas-ceu.c:987:12: error: 'ceu_runtime_resume' defined but not used [-Werror=unused-function] static int ceu_runtime_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~ This adds a __maybe_unused annotation to shut up the warning. Fixes: 32e5a70dc8f4 ("media: platform: Add Renesas CEU driver") Signed-off-by: Arnd Bergmann Reviewed-by: Simon Horman --- drivers/media/platform/renesas-ceu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/renesas-ceu.c b/drivers/media/platform/renesas-ceu.c index 22330c0c2f6a..eccd60a7ebec 100644 --- a/drivers/media/platform/renesas-ceu.c +++ b/drivers/media/platform/renesas-ceu.c @@ -984,7 +984,7 @@ static int ceu_init_mbus_fmt(struct ceu_device *ceudev) /* * ceu_runtime_resume() - soft-reset the interface and turn sensor power on. */ -static int ceu_runtime_resume(struct device *dev) +static int __maybe_unused ceu_runtime_resume(struct device *dev) { struct ceu_device *ceudev = dev_get_drvdata(dev); struct v4l2_subdev *v4l2_sd = ceudev->sd->v4l2_sd; @@ -1000,7 +1000,7 @@ static int ceu_runtime_resume(struct device *dev) * ceu_runtime_suspend() - disable capture and interrupts and soft-reset. * Turn sensor power off. */ -static int ceu_runtime_suspend(struct device *dev) +static int __maybe_unused ceu_runtime_suspend(struct device *dev) { struct ceu_device *ceudev = dev_get_drvdata(dev); struct v4l2_subdev *v4l2_sd = ceudev->sd->v4l2_sd;