[alsa-devel] [PATCH v2 2/2] ASoC: cs43130: Fix unused compiler warnings for PM runtime

Daniel Baluta daniel.baluta at nxp.com
Mon Sep 4 16:31:03 CEST 2017


On Lu, 2017-09-04 at 15:54 +0200, Takashi Iwai wrote:
> Add __maybe_unused prefix for addressing the following warnings:
>   sound/soc/codecs/cs43130.c:2615:12: warning: ‘cs43130_runtime_resume’ defined but not used [-Wunused-function]
>   sound/soc/codecs/cs43130.c:2596:12: warning: ‘cs43130_runtime_suspend’ defined but not used [-Wunused-function]
> 

Isn't it better to guard it with CONFIG_PM?

thanks,
Daniel.


More information about the Alsa-devel mailing list