From patchwork Fri Nov 18 16:16:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9436999 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 8DB0760237 for ; Fri, 18 Nov 2016 16:17:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F8E629999 for ; Fri, 18 Nov 2016 16:17:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 747EB2999D; Fri, 18 Nov 2016 16:17:02 +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=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 06AFB29999 for ; Fri, 18 Nov 2016 16:17:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753668AbcKRQQe (ORCPT ); Fri, 18 Nov 2016 11:16:34 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:53474 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752301AbcKRQQd (ORCPT ); Fri, 18 Nov 2016 11:16:33 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0MEJKO-1c194C2OzY-00FRuH; Fri, 18 Nov 2016 17:16:24 +0100 From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Arnd Bergmann , Kieran Bingham , Laurent Pinchart , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] [media] v4l: rcar_fdp1: mark PM functions as __maybe_unused Date: Fri, 18 Nov 2016 17:16:04 +0100 Message-Id: <20161118161621.798004-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:AlzkbE7ELZ9dOhm21/qjvZ0E3VYIQlGFgaaPJ+WsphbhXHzE7T8 SleyMSisPI6lK8PY6hSPxB7WsBnFHmdsO0XH/io/fpXE2MpGC+xllFH85eYRR3GzA6ptrEo bZOjxwtbH+6eCT0ptW7e3Xp6MQ6GyTuVi6erjOanQo0EQ0w2Aj4MsI/9sbI6pgZZE8h0MQg ispfbkcoGyG9ipcHN9c8g== X-UI-Out-Filterresults: notjunk:1; V01:K0:G4p4Mwak9n0=:oxAggPi24o4wi6rnQTRmD0 +DDOba2wUPc9E+l91keEKucox4K51sqwr/SIeadoNn9hMhbXKeJvPzYFy4IvAdg/HGJGihJZ6 bxyzgWcgmtblSUqhX1L7hlxQny70NLVmi17XhOmz2aySUWoNvOhA5VKW3zxL8gyI0mQhP9VAs VxuTDZ8NcDDGl7IdBQ9oFZ2MihBeU5h8+ygfOG6mGyxZpTzbI5OKuUpY69UjKGFllwCS8e5mT KehVRzygrfyqzZBxNKNSQnmIEGjBCxV0Ei20/WE5cb+4YAURT+AVjFBBIKtBarMNxg9wFDK3D di2fWTJsHrFu1TqlhkZQJdNsnY1Gzn59KgijliAcPnMlHdS0fyOlYSDIs4vcs1VOT9NR2s8Vz wpj/iqSKx9TbAUW1sjvdCFyg4W8Vou5TuZ05Ta0L1RslFShJCn71/uPfZWUI/7wtkbrVuizwm vUbRdy07n0lRLRqjprJ3aZOptIF5L/5F+Hkb2zQXHrn7SwxTVGOzRW2v3M4iQ0rGcZkGwwrnB 43fqxvVxy6tgoNSz1glqAgKpij9hZ5sShtkDY3onkTXagBsWhjCyqrP+Zp9vizKkdiTeH89VY F1lSLaHubcY6ei33ePj5A97koAhx8Cnz/dKoHx7F08r7eFx6A9Dkphr0Do5GBOTxRcfdrusg2 JgWCm5HJX2k3gGsO4dN33CuqxRhuMMTD9JagMuGKCk3Yks8TQ32G7EzUPkqe0Oq9kQAM= 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 new driver produces a warning when CONFIG_PM is disabled: platform/rcar_fdp1.c:2408:12: error: 'fdp1_pm_runtime_resume' defined but not used [-Werror=unused-function] platform/rcar_fdp1.c:2399:12: error: 'fdp1_pm_runtime_suspend' defined but not used [-Werror=unused-function] This marks the two functions as __maybe_unused. Fixes: 4710b752e029 ("[media] v4l: Add Renesas R-Car FDP1 Driver") Signed-off-by: Arnd Bergmann --- drivers/media/platform/rcar_fdp1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/rcar_fdp1.c b/drivers/media/platform/rcar_fdp1.c index dd1a6ea17f22..674cc1309b43 100644 --- a/drivers/media/platform/rcar_fdp1.c +++ b/drivers/media/platform/rcar_fdp1.c @@ -2396,7 +2396,7 @@ static int fdp1_remove(struct platform_device *pdev) return 0; } -static int fdp1_pm_runtime_suspend(struct device *dev) +static int __maybe_unused fdp1_pm_runtime_suspend(struct device *dev) { struct fdp1_dev *fdp1 = dev_get_drvdata(dev); @@ -2405,7 +2405,7 @@ static int fdp1_pm_runtime_suspend(struct device *dev) return 0; } -static int fdp1_pm_runtime_resume(struct device *dev) +static int __maybe_unused fdp1_pm_runtime_resume(struct device *dev) { struct fdp1_dev *fdp1 = dev_get_drvdata(dev);