mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
Without CONFIG_PM, there is another warning about an unused function: drivers/soundwire/intel.c:530:12: error: 'intel_link_power_down' defined but not used [-Werror=unused-function] After a previous fix, the driver already uses both an #ifdef and a __maybe_unused annotation but still gets it wrong. Remove the ifdef and instead use __maybe_unused consistently to avoid the problem for good. Fixes:f046b23340("soundwire: intel: fix intel_suspend/resume defined but not used warning") Fixes:ebf878eddb("soundwire: intel: add pm_runtime support") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>