From patchwork Wed Jan 3 09:27:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10141907 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 516CF60594 for ; Wed, 3 Jan 2018 09:28:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37FF729007 for ; Wed, 3 Jan 2018 09:28:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B20A2900A; Wed, 3 Jan 2018 09:28:06 +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 B2C9629007 for ; Wed, 3 Jan 2018 09:28:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751983AbeACJ2E (ORCPT ); Wed, 3 Jan 2018 04:28:04 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:55552 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751982AbeACJ2C (ORCPT ); Wed, 3 Jan 2018 04:28:02 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0LjsPB-1f3oMe2y6r-00brdl; Wed, 03 Jan 2018 10:27:49 +0100 From: Arnd Bergmann To: Yong Zhi , Sakari Ailus , Mauro Carvalho Chehab Cc: Arnd Bergmann , Rajmohan Mani , Hyungwoo Yang , Vijaykumar Ramya , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: intel-ipu3: cio2: mark PM functions as __maybe_unused Date: Wed, 3 Jan 2018 10:27:26 +0100 Message-Id: <20180103092747.1981583-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:KoZ6Qg7XLjbVCq1bDtlhHIgvS/Y8+Kkvj7J959RU+iFMwWeS1Vu fi7gTPLJPr52QhUJ50EiMMYSPrZxg4RVOYWfEqwc3rMd2g9acMIMDn+h4ClqWCeFF/F7u72 WSdNqsPwdefi+3q0Kq/zMKXfrs6baHy/4ubXZkamqL+lEjBaynE/6EpsbnajlHNV+iWya1G ovyBt5PEKNjVO+i+cPayw== X-UI-Out-Filterresults: notjunk:1; V01:K0:e3dTMU/gGgA=:eAZD6iIzxn7e8EhCDVoFRc aP8ekYZExOAMyCyH+5i39XwW6227JUXkicIU56B2nhW5MrvfqJCHGblthtb4C/PMUxUHqHZwn K7pheSYdBr3kAB7PcY8pEFbV05EUeS0MkGjSInAtzOfMVZGoh8+LZJs/rGtMTrknesXyZFYqZ ItjLV4fm9+zAKucPOTTkPp8DqVKwGBYdzEOhOL2Ex5GNMrfMRhg0ebZnWb4WSQf9n1g0F12j+ 6wcTB0Ks78DiYZz9835xRUJN+5wxlcLkHHge1sdXYaT5H+VPks7PVAZ1rCJBfrXpZlM6ZvwvF h3BomtAEZowcVZt+mug3DzdwiMrUv4gY40Ty4lAUQ1p1e4oWMti9R3qxyBAVUNZqSdsUrb6sD hyz0lyWM84K4rAQOWImXWAufZbkHQILf3CQ+TxO1CyKLa3Om1vQoUSUQaZFjzUDrzBqUiAfIc aeqARXTQPAPUUIQIGqLBe2AIYFayQzmwybQe74IfFawqTwMhEy2xKc8XfBf2fMmiNDd3afuXW TPmfrbrelX2S2uF62yIcVuWa52E9jk0brTJ90M4VF0keV9APPwLgsXN9iHd0n57fR0wPDY6Tw 6EVZvuK4WICyA+UVy2mk/eFZ60QCdm/RhQxxbsOy+QU67FxrWgd2ScNa9UjynkFN/KirgGrNq ffCAM/281OJYqfnTOQsVd6NisT66I/qeaCshncoDwDiDhnfp+QWw8HfA/U2Qfz30J4DPimOfD Jv2LLqv6rXg6V19t6YMDhxsLys8mIhI/eDR/aA== 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 When CONFIG_PM is disabled, we get harmless warnings about the suspend/resume callbacks being unused: drivers/media/pci/intel/ipu3/ipu3-cio2.c:1993:12: error: 'cio2_resume' defined but not used [-Werror=unused-function] drivers/media/pci/intel/ipu3/ipu3-cio2.c:1967:12: error: 'cio2_suspend' defined but not used [-Werror=unused-function] This marks them as __maybe_unused to shut up the warnings. Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver") Signed-off-by: Arnd Bergmann --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2.c b/drivers/media/pci/intel/ipu3/ipu3-cio2.c index 941caa987dab..c2f1447eec0b 100644 --- a/drivers/media/pci/intel/ipu3/ipu3-cio2.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.c @@ -1964,7 +1964,7 @@ static void cio2_fbpt_rearrange(struct cio2_device *cio2, struct cio2_queue *q) cio2_fbpt_entry_enable(cio2, q->fbpt + i * CIO2_MAX_LOPS); } -static int cio2_suspend(struct device *dev) +static int __maybe_unused cio2_suspend(struct device *dev) { struct pci_dev *pci_dev = to_pci_dev(dev); struct cio2_device *cio2 = pci_get_drvdata(pci_dev); @@ -1990,7 +1990,7 @@ static int cio2_suspend(struct device *dev) return 0; } -static int cio2_resume(struct device *dev) +static int __maybe_unused cio2_resume(struct device *dev) { struct pci_dev *pci_dev = to_pci_dev(dev); struct cio2_device *cio2 = pci_get_drvdata(pci_dev);