diff options
| author | Vaibhav Gupta <[email protected]> | 2020-11-02 22:17:15 +0530 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-11-25 23:14:31 -0500 |
| commit | 71c8f15e1dbcd202f0b27d7560ce191c5a3b7286 (patch) | |
| tree | 82f31c5fe3905cb93ba933477eb43b4511090132 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 027e508aea458719390eb6a83a297940e8ae79f1 (diff) | |
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/[email protected]
Signed-off-by: Vaibhav Gupta <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions