From 7d913c868f64dbbde9d46386f0f75992ae7a50b8 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Thu, 28 Nov 2019 13:52:04 +0200 Subject: [PATCH] ASoc: SOF: Intel: fix hda-ctrl.c build error on sparc64 Fix build error reported on sparc64 due to missing include for module.h. Also add #ifdefs to codec_mask to avoid unused variable warnings on builds with HDA disabled. Reported-by: kbuild test robot Signed-off-by: Kai Vehmanen --- sound/soc/sof/intel/hda-ctrl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/sof/intel/hda-ctrl.c b/sound/soc/sof/intel/hda-ctrl.c index 92e9e4306301..871b71a15a63 100644 --- a/sound/soc/sof/intel/hda-ctrl.c +++ b/sound/soc/sof/intel/hda-ctrl.c @@ -15,14 +15,17 @@ * Hardware interface for generic Intel audio DSP HDA IP */ +#include #include #include #include "../ops.h" #include "hda.h" +#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA) static int hda_codec_mask = -1; module_param_named(codec_mask, hda_codec_mask, int, 0444); MODULE_PARM_DESC(codec_mask, "SOF HDA codec mask for probing"); +#endif /* * HDA Operations.