linux/drivers/scsi/smartpqi
Arnd Bergmann 5c146686e3 scsi: smartpqi: mark PM functions as __maybe_unused
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@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-06-12 20:48:05 -04:00
..
Kconfig scsi: smartpqi: update Kconfig 2016-09-02 06:27:28 -04:00
Makefile
smartpqi_init.c scsi: smartpqi: mark PM functions as __maybe_unused 2017-06-12 20:48:05 -04:00
smartpqi_sas_transport.c scsi: smartpqi: update copyright 2017-06-12 20:48:03 -04:00
smartpqi_sis.c scsi: smartpqi: update copyright 2017-06-12 20:48:03 -04:00
smartpqi_sis.h scsi: smartpqi: update copyright 2017-06-12 20:48:03 -04:00
smartpqi.h scsi: smartpqi: remove writeq/readq function definitions 2017-06-12 20:48:04 -04:00