diff options
| author | Jérémy Lefaure <[email protected]> | 2016-12-16 19:25:27 -0500 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2016-12-28 16:05:12 +0100 |
| commit | fe4cb86cdea781e969f37b9aa9db95577ff485f2 (patch) | |
| tree | e04362593706bc913b005ba8811b1f67348ae918 /scripts/objdiff | |
| parent | 2d706e790f0508dff4fb72eca9b4892b79757feb (diff) | |
ALSA: cs5535audio: fix unused warnings on resume/suspend
When CONFIG_PM_SLEEP is disabled, SIMPLE_DEV_PM_OPS does not use
snd_cs5535audio_resume and snd_cs5535audio_suspend functions:
sound/pci/cs5535audio/cs5535audio_pm.c:77:12: warning: ‘snd_cs5535audio_resume’ defined but not used [-Wunused-function]
static int snd_cs5535audio_resume(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~
sound/pci/cs5535audio/cs5535audio_pm.c:58:12: warning: ‘snd_cs5535audio_suspend’ defined but not used [-Wunused-function]
static int snd_cs5535audio_suspend(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~~
Adding __maybe_unused to the declaration of these functions removes the
warnings.
Signed-off-by: Jérémy Lefaure <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions