diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2016-03-02 16:59:00 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-25 11:03:45 +0100 |
| commit | fcb86b38aceb61b393a618592a2eec1afa173fa5 (patch) | |
| tree | 674e8032d7541a8637ca2e66a7ec90ebb0e5eb5d /drivers/media/usb/pwc/pwc-if.c | |
| parent | f83c36bd7bfcfe378029b5dcf6ed0df6a861171b (diff) | |
scsi: mvumi: use __maybe_unused to hide pm functions
commit fddbeb80a904aae41c84ed566e2b0d1de55907df upstream.
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 <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/usb/pwc/pwc-if.c')
0 files changed, 0 insertions, 0 deletions
