OpenCloudOS-Kernel/sound/pci/cs5535audio
Jérémy Lefaure fe4cb86cde 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 <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-12-28 16:05:12 +01:00
..
Makefile ALSA: PCI: Replace CONFIG_PM with CONFIG_PM_SLEEP 2012-08-14 18:12:04 +02:00
cs5535audio.c ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
cs5535audio.h ALSA: pci: remove __dev* attributes 2012-12-07 07:20:55 +01:00
cs5535audio_olpc.c ALSA: cs5535audio: Use standard printk helpers 2014-02-26 16:45:25 +01:00
cs5535audio_pcm.c ALSA: cs5535audio: constify snd_pcm_ops structures 2016-09-02 11:48:56 +02:00
cs5535audio_pm.c ALSA: cs5535audio: fix unused warnings on resume/suspend 2016-12-28 16:05:12 +01:00