[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210929145040.793252-1-simont@opensource.cirrus.com>
Date: Wed, 29 Sep 2021 15:50:40 +0100
From: Simon Trimmer <simont@...nsource.cirrus.com>
To: <broonie@...nel.org>, <lgirdwood@...il.com>
CC: <alsa-devel@...a-project.org>, <patches@...nsource.cirrus.com>,
<linux-kernel@...r.kernel.org>,
Simon Trimmer <simont@...nsource.cirrus.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH] ASoC: wm_adsp: Fix compilation when debugfs is disabled
Guard the use of component->debufs_root against CONFIG_DEBUG_FS
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Simon Trimmer <simont@...nsource.cirrus.com>
---
sound/soc/codecs/wm_adsp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index f17c749c24c3..03cfaa82b031 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -1028,7 +1028,9 @@ int wm_adsp2_component_probe(struct wm_adsp *dsp, struct snd_soc_component *comp
snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->cs_dsp.name);
snd_soc_component_disable_pin(component, preload);
+#if IS_ENABLED(CONFIG_DEBUG_FS)
cs_dsp_init_debugfs(&dsp->cs_dsp, component->debugfs_root);
+#endif
dsp->component = component;
--
2.33.0
Powered by blists - more mailing lists