diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2018-01-04 17:35:52 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-01-08 10:56:34 -0500 |
commit | 845ab40092601630ec9eb58398a53b9a87b6900b (patch) | |
tree | 87e4fb6d85d69688ec9b1986411523b99b69d995 | |
parent | 5c256045b87b8aa8e5bc9d2e2fdc0802351c1f99 (diff) |
ASoC: acpi: add missing includes for non-ACPI platforms
0-day reports compilation issues with non-ACPI platforms.
In file included from sound/soc/soc-acpi.c:17:0:
>> include/sound/soc-acpi.h:36:46: error: 'ACPI_ID_LEN' undeclared here
(not in a function); did you mean 'ACPI_FILE'?
snd_soc_acpi_find_name_from_hid(const u8 hid[ACPI_ID_LEN])
sound/soc/soc-acpi.c: At top level:
>> sound/soc/soc-acpi.c:174:16: error: expected declaration specifiers or
'...' before string constant
MODULE_LICENSE("GPL v2");
Add missing include files.
Fixes: 7feb2f786a46 ("ASoC: move ACPI common code out of Intel/sst tree")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | include/sound/soc-acpi-intel-match.h | 1 | ||||
-rw-r--r-- | include/sound/soc-acpi.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc-acpi-intel-match.h b/include/sound/soc-acpi-intel-match.h index 1a9191cd4bb3..9da6388c20a1 100644 --- a/include/sound/soc-acpi-intel-match.h +++ b/include/sound/soc-acpi-intel-match.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #ifndef __LINUX_SND_SOC_ACPI_INTEL_MATCH_H | 16 | #ifndef __LINUX_SND_SOC_ACPI_INTEL_MATCH_H |
17 | #define __LINUX_SND_SOC_ACPI_INTEL_MATCH_H | 17 | #define __LINUX_SND_SOC_ACPI_INTEL_MATCH_H |
18 | 18 | ||
19 | #include <linux/module.h> | ||
19 | #include <linux/stddef.h> | 20 | #include <linux/stddef.h> |
20 | #include <linux/acpi.h> | 21 | #include <linux/acpi.h> |
21 | 22 | ||
diff --git a/include/sound/soc-acpi.h b/include/sound/soc-acpi.h index a7d8d335b043..a93436089bf5 100644 --- a/include/sound/soc-acpi.h +++ b/include/sound/soc-acpi.h | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/stddef.h> | 18 | #include <linux/stddef.h> |
19 | #include <linux/acpi.h> | 19 | #include <linux/acpi.h> |
20 | #include <linux/mod_devicetable.h> | ||
20 | 21 | ||
21 | struct snd_soc_acpi_package_context { | 22 | struct snd_soc_acpi_package_context { |
22 | char *name; /* package name */ | 23 | char *name; /* package name */ |