]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ASoC: SOF: amd: Fixed Build error
authorSyed Saba kareem <ssabakar@amd.com>
Mon, 23 May 2022 11:29:53 +0000 (16:59 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 23 May 2022 17:33:13 +0000 (18:33 +0100)
Add linux/module.h in acp-pci.c to solve the below dependency

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

>> 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);
| ^~~~~~~~~~~~~~~~~~~
>> sound/soc/amd/acp/acp-pci.c:148:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]
...

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Syed Saba Kareem<ssabakar@amd.com>
Link: https://lore.kernel.org/r/20220523112956.3087604-1-ssabakar@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-pci.c

index 340e39d7f42058ae5674b97506d9329953fb5c47..c893963ee2d062fb4cf5e02072f6048a5947a10d 100644 (file)
@@ -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"