From patchwork Wed Mar 2 15:59:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102613 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2461563lbc; Wed, 2 Mar 2016 08:02:55 -0800 (PST) X-Received: by 10.66.249.41 with SMTP id yr9mr39833381pac.86.1456934575182; Wed, 02 Mar 2016 08:02:55 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id k25si18457729pfb.67.2016.03.02.08.02.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Mar 2016 08:02:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ab9Dj-0002zD-Mi; Wed, 02 Mar 2016 16:01:51 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ab9CX-0001GD-3Z for linux-arm-kernel@lists.infradead.org; Wed, 02 Mar 2016 16:00:38 +0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0LphYc-1Zw35S4BMs-00fOO7; Wed, 02 Mar 2016 17:00:09 +0100 From: Arnd Bergmann To: "James E.J. Bottomley" , "Martin K. Petersen" Subject: [PATCH 08/14] scsi: mvumi: use __maybe_unused to hide pm functions Date: Wed, 2 Mar 2016 16:59:00 +0100 Message-Id: <1456934350-1389172-9-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1456934350-1389172-1-git-send-email-arnd@arndb.de> References: <1456934350-1389172-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:ckAxWj8Hne7GUcXwKiC0efVCzRmCcLZGCvPVWYb4MPB5UCnTVi/ 7WdXF8onOFoQKHH5sIwMFbd4ksV51JrU28oj2PTjwr6QiwzwD0NtM6wJhOR144lV7I+UIiT nZb6HNR4jNaHP2eme4pHKEdpR73asHk7zSthRattaURLQKQt59x6ENG1A22sG/nN8/uBMeJ BPPMNkXVQTU7e5v08Qj0Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:HVSSbAXgfcU=:STgQ5bGBkTXfWhf6ducP+a x1H6WMj5kJyO+z+YXP12uM3CSP52iS6/Qih0a3fkGq0qf2oSNX9Hu2knGNgNrcppify0lEjzp ODBRAGf7o9zn8JFuLj0YEI9HyIjcRCGmUU/C3Xvu5EtJJs4t7EucQFDxKhFuV5P0TOX0WM5FC fQnZFBU8iAPLoAbrFy+UvRiEZ7kj4x0BuNyfE/5mKYytc3Nz4LhjpoJZyx+j6hR1FbGYDtiMC 124iKugvBdatTxyh/jkX3byeb5vH71A+iiPqQCEo5hGbnZQVL+UrzzKSOBsPfPmdpOlNUh5Xu IF9x63zQG1aaF9bB9MtCLocpYPPNyfhj/CaZWRXTT4QGfv1oDeB0sKaWmx24KIDTzOCAQz2CP ViuBD/wiE3rN7/kF+yctm20qGvkHDVkfBNtV4ST4e1I49q3kYqYDTZAzxrAsrXXlex9J/Y1Jx lA7pC3sA7N2VSZ8gO7F0r0rMQeENu/kqYi5bCfxyz4xBuixJcBdCgGLXVLN+e6pNOZaX2E4nx saUQRyGEMpTgtPBlZATDRLTxnO2oios47MHLwd325l+LSTu4/36fhoX1XtYeKGOAt10b+P3oP YWlvlP7FpF6UOg3TlQwEISJpbKA4wndpxmb03xJf+hM7+HhlBnsOhHm9S1kIDBS3T703Ss2Qb wJl+F3voUVPgxeuc8rQBkYAlqlVIZZkedYMFjGgUSYz9vXfQoLm8cWsBjm0PTi0qQ/GI= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160302_080037_701325_25EF68B2 X-CRM114-Status: GOOD ( 12.08 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [212.227.17.24 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.24 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-scsi@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The mvumi scsi hides the references to its suspend/resume functions in an #ifdef but does not hide the implementation the same way: drivers/scsi/mvumi.c:2632:12: error: 'mvumi_suspend' defined but not used [-Werror=unused-function] drivers/scsi/mvumi.c:2651:12: error: 'mvumi_resume' defined but not used [-Werror=unused-function] This adds __maybe_unused annotations so the compiler knows it can silently drop them instead of warning, while avoiding the addition of another #ifdef. Signed-off-by: Arnd Bergmann --- drivers/scsi/mvumi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index 02360de6b7e0..39285070f3b5 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -2629,7 +2629,7 @@ static void mvumi_shutdown(struct pci_dev *pdev) mvumi_flush_cache(mhba); } -static int mvumi_suspend(struct pci_dev *pdev, pm_message_t state) +static int __maybe_unused mvumi_suspend(struct pci_dev *pdev, pm_message_t state) { struct mvumi_hba *mhba = NULL; @@ -2648,7 +2648,7 @@ static int mvumi_suspend(struct pci_dev *pdev, pm_message_t state) return 0; } -static int mvumi_resume(struct pci_dev *pdev) +static int __maybe_unused mvumi_resume(struct pci_dev *pdev) { int ret; struct mvumi_hba *mhba = NULL;