Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932087AbcCBQAt (ORCPT ); Wed, 2 Mar 2016 11:00:49 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:49466 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755360AbcCBQAl (ORCPT ); Wed, 2 Mar 2016 11:00:41 -0500 From: Arnd Bergmann To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org 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= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1331 Lines: 39 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(-) 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; -- 2.7.0