Skip to content

Commit 77ad261

Browse files
Venkata-Prasad-Potturubroonie
authored andcommitted
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: 8ae746f ("ASoC: amd: acp: Implement acp_common_hw_ops support for acp platforms") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Venkata Prasad Potturu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 09dc803 commit 77ad261

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/amd/acp/acp-legacy-common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct acp_resource acp70_rsrc = {
6767
};
6868
EXPORT_SYMBOL_NS_GPL(acp70_rsrc, "SND_SOC_ACP_COMMON");
6969

70-
const struct snd_acp_hw_ops acp_common_hw_ops = {
70+
static const struct snd_acp_hw_ops acp_common_hw_ops = {
7171
/* ACP hardware initilizations */
7272
.acp_init = acp_init,
7373
.acp_deinit = acp_deinit,
@@ -77,7 +77,6 @@ const struct snd_acp_hw_ops acp_common_hw_ops = {
7777
.en_interrupts = acp_enable_interrupts,
7878
.dis_interrupts = acp_disable_interrupts,
7979
};
80-
EXPORT_SYMBOL_NS_GPL(acp_common_hw_ops, "SND_SOC_ACP_COMMON");
8180

8281
irqreturn_t acp_irq_handler(int irq, void *data)
8382
{

0 commit comments

Comments
 (0)