linux-stable/drivers/scsi/hisi_sas
Vaibhav Gupta 71c8f15e1d scsi: hisi_sas_v3_hw: Remove extra function calls for runtime pm
Both runtime_suspend_v3_hw() and runtime_resume_v3_hw() do nothing else but
invoke suspend_v3_hw() and resume_v3_hw() respectively. This is the case of
unnecessary function calls. To use those functions for runtime pm as well,
simply use UNIVERSAL_DEV_PM_OPS.

make -j$(nproc) W=1, with CONFIG_PM disabled, throws '-Wunused-function'
warning for runtime_suspend_v3_hw() and runtime_resume_v3_hw(). After
dropping those function definitions, the warning was thrown for
suspend_v3_hw() and resume_v3_hw(). Hence, mark them as '__maybe_unused'.

Link: https://lore.kernel.org/r/20201102164730.324035-15-vaibhavgupta40@gmail.com
Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-11-25 23:14:31 -05:00
..
hisi_sas.h SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
hisi_sas_main.c SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
hisi_sas_v1_hw.c scsi: hisi_sas: Add missing newlines 2020-09-02 22:49:08 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Code style cleanup 2020-09-02 22:49:08 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas_v3_hw: Remove extra function calls for runtime pm 2020-11-25 23:14:31 -05:00
Kconfig scsi: hisi_sas: Add check for methods _PS0 and _PR0 2020-10-06 20:47:06 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00