From patchwork Mon Jan 8 12:57:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10149387 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 5CF76602B3 for ; Mon, 8 Jan 2018 12:57:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6140128618 for ; Mon, 8 Jan 2018 12:57:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5609528628; Mon, 8 Jan 2018 12:57:44 +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 194CF28618 for ; Mon, 8 Jan 2018 12:57:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932516AbeAHM5c (ORCPT ); Mon, 8 Jan 2018 07:57:32 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:59647 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932494AbeAHM53 (ORCPT ); Mon, 8 Jan 2018 07:57:29 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0M4r65-1eopzH0PUr-00yykr; Mon, 08 Jan 2018 13:57:18 +0100 From: Arnd Bergmann To: Yong Zhi , Sakari Ailus , Mauro Carvalho Chehab Cc: Arnd Bergmann , Cao Bing Bu , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: intel-ipu3: cio2: mark more PM functions as __maybe_unused Date: Mon, 8 Jan 2018 13:57:00 +0100 Message-Id: <20180108125715.4146742-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:E3NSF2rWLoFcsAdCMUUXYaixKrZjtvslpQtLk3xQgevyx9VweAi gsKO7mTUcRP/6SA23pCJmwlLvIiJe+knO8r6C3P0q3ZddumdjCVyr4nj6R3SBNMhqmyOLti CLZBNVByQSnCM7BtL9sSXnwd1fnd9CnpLHlHA+au/GXEophZ67q/C/3MdmJmu0YaiPxGKDM s5hMDhfn+V6UzJib7IALQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:E0X3GDxG97g=:wBKfbRYeNhZhNyvdZuebw/ R7u5jRMl2na1VaCvTiPY0hiOXKigxn/DqcKpAlYzfu69PIgweE7iDSfsbrdelwHnFw6umSN86 af4pd02KxWrDo6S8JYKTGOKizVX1UflrnNsjhXiZOZek6z60OAjk9x/brqhwysxtbgZ2+dOw+ nCzroXC5QCis80zztUdkpyx7bcs4edaqcmHu+DsfwePz3kWkluk8Q9mffazOLobxBAR7GOlQD KhO76yK2eZIPGKzO2JJxWV6Ay1Dqy81rCY9T24rEmLxoVCElSH1ZHS7RYeQKP9dUiMbKqvevn Zs21BGdOxGvYx5JTmjCnGptnP4c7+tAIavIEMGiBKMMTHwx0TRrgL2wBxrEePzit/rrLmHuIq s7aNL8oe833DNUW7lp6hF/nTrSm1lOzCBNKfc9nIJbbRTXBGuRiKVzTeFnqbpUWdle7L0H0C+ 23JA5tsPvQ7VLrjb01SYJNai+Sd8Aw+YEBcFUVk84UyhOJzIJ/FgFZNV05GqcqmjWT3qzwzZA A+bj7vGMOwXpDGWA1Kyro708JWDAyPjWpRYSBb5Dgq7iOH9gnM+zncdGVZEII4QP+1KmYCtxb RrJio4VpwcFm3O10NPMsSCY4qFVohQi9/1Sl/x5p2kdNQRGrfPxxs9fnwoGPDka8TspCKqm+z xvu/PC9hFEaVWirJ9LxupTJHGwS4k1HAi/fQLqZ2CrmHmXvd9OxoGCgUVJObgExsBHB9UH6ZW P+HMPuGw4txlrCBMtK/TEkMhmGSUv8uXj0aQCQ== 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 My earlier patch missed two functions, these must be __maybe_unused as well: drivers/media/pci/intel/ipu3/ipu3-cio2.c:1867:12: error: 'cio2_runtime_resume' defined but not used [-Werror=unused-function] drivers/media/pci/intel/ipu3/ipu3-cio2.c:1849:12: error: 'cio2_runtime_suspend' defined but not used [-Werror=unused-function] Fixes: 2086dd35705f ("media: intel-ipu3: cio2: mark PM functions as __maybe_unused") Signed-off-by: Arnd Bergmann --- If my previous patch is not in a stable branch yet, folding the new fixup into that would be ideal. --- 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 9db752a7f363..724cd8d9d573 100644 --- a/drivers/media/pci/intel/ipu3/ipu3-cio2.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.c @@ -1850,7 +1850,7 @@ static void cio2_pci_remove(struct pci_dev *pci_dev) mutex_destroy(&cio2->lock); } -static int cio2_runtime_suspend(struct device *dev) +static int __maybe_unused cio2_runtime_suspend(struct device *dev) { struct pci_dev *pci_dev = to_pci_dev(dev); struct cio2_device *cio2 = pci_get_drvdata(pci_dev); @@ -1868,7 +1868,7 @@ static int cio2_runtime_suspend(struct device *dev) return 0; } -static int cio2_runtime_resume(struct device *dev) +static int __maybe_unused cio2_runtime_resume(struct device *dev) { struct pci_dev *pci_dev = to_pci_dev(dev); struct cio2_device *cio2 = pci_get_drvdata(pci_dev);