ASoC: SOF: Intel: byt: fix unused-function warnings
Subsystems (3)
PATCH 1/1 ASoC: SOF: Intel: byt: fix unused-function warnings
Several functions in this driver are only referenced for baytrail-class configurations and building configurations with only merrifield enabled causes a warning:
sound/soc/sof/intel/byt.c:447:12: error: unused function 'byt_suspend' [-Werror,-Wunused-function] static int byt_suspend(struct snd_sof_dev *sdev, u32 target_state)
^
sound/soc/sof/intel/byt.c:454:12: error: unused function 'byt_resume' [-Werror,-Wunused-function]
static int byt_resume(struct snd_sof_dev *sdev)
^sound/soc/sof/intel/byt.c:464:12: error: unused function 'byt_remove' [-Werror,-Wunused-function] static int byt_remove(struct snd_sof_dev *sdev)
Move these into a corresponding #ifdef section.
--- sound/soc/sof/intel/byt.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/sof/intel/byt.c +2 -0
@@ -432,6 +432,7 @@ static void byt_set_mach_params(const struct snd_soc_acpi_mach *mach, mach_params->platform =dev_name (dev); } +#if IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL )static void byt_reset_dsp_disable_int (struct snd_sof_dev *sdev) {/* Disable Interrupt from both sides */
@@ -467,6 +468,7 @@ static int byt_remove(struct snd_sof_dev *sdev)return 0 ; } +#endif /* Baytrail DAIs */ static struct snd_soc_dai_driver byt_dai[] = {
Signature · 1 line
2.26.2
Mark Brown
maintainerQuoted 3 lines · Arnd Bergmann
Several functions in this driver are only referenced for baytrail-class configurations and building configurations with only merrifield enabled causes a warning:
Pierre fixed this earlier today.