diff options
| author | Arnd Bergmann <[email protected]> | 2016-03-02 16:59:00 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2016-03-05 17:07:46 -0500 |
| commit | fddbeb80a904aae41c84ed566e2b0d1de55907df (patch) | |
| tree | 49d3b14ce7bf24015c8c3a7ac10c8f8f5d1055f0 /scripts/gdb/linux/device.py | |
| parent | 8063d56efa7f7a3e8a2776addfed1874785c74f0 (diff) | |
scsi: mvumi: use __maybe_unused to hide pm functions
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 <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions