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: 123288 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp9952007qgn; Wed, 3 Jan 2018 01:28:06 -0800 (PST) X-Google-Smtp-Source: ACJfBougr+BFahesAJi9AocerNQn/TkWCRzbUnXyzJIQ+jlNSKqiGAGNb7Gb4WcVBskOxRllLhcc X-Received: by 10.84.143.34 with SMTP id 31mr852578ply.446.1514971686112; Wed, 03 Jan 2018 01:28:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514971686; cv=none; d=google.com; s=arc-20160816; b=02u0bEyF7hSOI7aSOH5YfTFLlIqYmHkc6PnFkml29sBnkW5E2LEdQg0JFoDCOB76ci r/87xD4d8pN1bk7ESrx+EXDK3MnTOtbdrdeNiADtL7AoWqy7hxxYtFuBFcLwmUeOOAXJ QYXtCKIMn7HYuqBw0C+AU4sGJB8bW02Uzfmzjabki7zXx9tfR9vBRRjof0jXWoBgYlVg f3+0OXmv1tLpCfJs5LxlNQIcega+X6BodieLnrCiqkZ7LNPDNyg+x3QSxX5iAfZ/f6K8 Ld9ywDPu8/sP2Bnn3RorGMuCEO1PFCS8QpMKx4E/JwwJsLI3aGYWi8Tl3u/QAd5XIs1/ c6rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=k7RhY9mcedO4zwF3HsRenQOIkIvd7OYQ7lXPefGBktM=; b=iLpozRkcRFaCQgxmoMWlIPXz9MP0NUzipofQACDJqXuTGHYQFd68yl7/sfBkK1VtCC D961M9qoN2qmJm4MKnEuiPvyfmhWAZZXyn3PfGFgafFfcclbnTCBfF5+Stu3oV2d1zjD 4qBziSOopa+mwPtJq0C0JoNadMsswFBkISR0X7TFLnAowJ6idrGZtoUtz92RsAIpQwyg xocRxGBggKSoJNfWezbMKPs6iLQGOUNff8ksmu4OVo5/aNRY7hWZsmLCyOBNatMhu3Qk Em6h5MSB7d5D5kSYgiclSS9kVzROZa7v+rFDlZjI6Pn77sH0ylODX+SazbE27qD8bC5N s/rQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si461706pll.476.2018.01.03.01.28.06; Wed, 03 Jan 2018 01:28:06 -0800 (PST) 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 S1751983AbeACJ2E (ORCPT + 4 others); 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 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(-) -- 2.9.0 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);