Skip to contentSkip to conversation

ASoC: SOF: amd: Fixed Build error

PATCH New Syed Saba kareem 1 participant 1 message May 23, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: SOF: amd: Fixed Build error

Add linux/module.h in acp-pci.c to solve the below dependency

All error/warnings (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

sound/soc/amd/acp/acp-pci.c:148:1: warning: data definition has no type or storage class

148 | MODULE_DEVICE_TABLE(pci, acp_pci_ids);
| ^~~~~~~~~~~~~~~~~~~

Quoted 1 line
Quoted 1 line

sound/soc/amd/acp/acp-pci.c:148:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]

...

---
 sound/soc/amd/acp/acp-pci.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/amd/acp/acp-pci.c +1 -0
index 340e39d7f420..c893963ee2d0 100644
@@ -16,6 +16,7 @@
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
+#include <linux/module.h>
 
 #include "amd.h"
 #include "../mach-config.h"
Signature · 1 line
2.25.1