[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a2KD5aJanDcaRUHi2GeotJ_pfC_UY+KrWdYua1_k3GYow@mail.gmail.com>
Date: Thu, 18 May 2017 11:09:16 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Don Brace <don.brace@...rosemi.com>,
"James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Scott Benesh <scott.benesh@...rosemi.com>,
Scott Teel <scott.teel@...rosemi.com>,
esc.storagedev@...rosemi.com, linux-scsi@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Kevin Barnett <kevin.barnett@...rosemi.com>
Subject: Re: [PATCH] scsi: smartpqi: mark PM functions as __maybe_unused
On Thu, May 18, 2017 at 10:32 AM, Arnd Bergmann <arnd@...db.de> wrote:
> The newly added suspend/resume support causes harmless warnings
> when CONFIG_PM is disabled:
>
> smartpqi/smartpqi_init.c:5147:12: error: 'pqi_ctrl_wait_for_pending_io' defined but not used [-Werror=unused-function]
> smartpqi/smartpqi_init.c:2019:13: error: 'pqi_wait_until_lun_reset_finished' defined but not used [-Werror=unused-function]
> smartpqi/smartpqi_init.c:2013:13: error: 'pqi_wait_until_scan_finished' defined but not used [-Werror=unused-function]
>
> We can avoid the warnings by removing the #ifdef around the
> handlers and instead marking them as __maybe_unused, which will
> let gcc drop the unused code silently.
>
> Fixes: f44d210312a6 ("scsi: smartpqi: add suspend and resume support")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
I notice that today's linux-next no longer contains the patch that introduced
the warning.
Arnd
Powered by blists - more mailing lists