From: Venkata Prasad Potturu Date: Mon, 17 Mar 2025 07:24:09 +0000 (+0530) Subject: ASoC: amd: acp: Fix acp_common_hw_ops declaration error X-Git-Tag: v6.15-rc1~173^2~4^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77ad261ecc4aa1b09bc98b32cdbfadb5e92197b7;p=thirdparty%2Fkernel%2Flinux.git ASoC: amd: acp: Fix acp_common_hw_ops declaration error Fix acp_common_hw_ops declaration error by adding static and remove export symbol. sparse: symbol 'acp_common_hw_ops' was not declared. Should it be static? Fixes: 8ae746fe5104 ("ASoC: amd: acp: Implement acp_common_hw_ops support for acp platforms") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202503141442.iT0LHEMx-lkp@intel.com/ Signed-off-by: Venkata Prasad Potturu Link: https://patch.msgid.link/20250317072413.88971-3-venkataprasad.potturu@amd.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/amd/acp/acp-legacy-common.c b/sound/soc/amd/acp/acp-legacy-common.c index 5fad6c4a8d86e..b4d68484e06df 100644 --- a/sound/soc/amd/acp/acp-legacy-common.c +++ b/sound/soc/amd/acp/acp-legacy-common.c @@ -67,7 +67,7 @@ struct acp_resource acp70_rsrc = { }; EXPORT_SYMBOL_NS_GPL(acp70_rsrc, "SND_SOC_ACP_COMMON"); -const struct snd_acp_hw_ops acp_common_hw_ops = { +static const struct snd_acp_hw_ops acp_common_hw_ops = { /* ACP hardware initilizations */ .acp_init = acp_init, .acp_deinit = acp_deinit, @@ -77,7 +77,6 @@ const struct snd_acp_hw_ops acp_common_hw_ops = { .en_interrupts = acp_enable_interrupts, .dis_interrupts = acp_disable_interrupts, }; -EXPORT_SYMBOL_NS_GPL(acp_common_hw_ops, "SND_SOC_ACP_COMMON"); irqreturn_t acp_irq_handler(int irq, void *data) {