ASoC: soc-acpi: add static inline fallbacks when CONFIG_ACPI=n
PATCH 1/1 ASoC: soc-acpi: add static inline fallbacks when CONFIG_ACPI=n
Fix compilation issues reported by 0day-Kbuild with sparc64 w/ SOF.
--- include/sound/soc-acpi.h | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-)
include/sound/soc-acpi.h +21 -7
@@ -22,20 +22,37 @@ struct snd_soc_acpi_package_context {#define SND_ACPI_I2C_ID_LEN (4 + ACPI_ID_LEN + 3 + 1)#if IS_ENABLED (CONFIG_ACPI ) +/* acpi match */ +struct snd_soc_acpi_mach * +snd_soc_acpi_find_machine (struct snd_soc_acpi_mach *machines); +bool snd_soc_acpi_find_package_from_hid (const u8 hid[ACPI_ID_LEN ],struct snd_soc_acpi_package_context *ctx); + +/* check all codecs */ +struct snd_soc_acpi_mach *snd_soc_acpi_codec_list (void *arg); +#else +/* acpi match */ +static inline struct snd_soc_acpi_mach * +snd_soc_acpi_find_machine (struct snd_soc_acpi_mach *machines) +{ +return NULL ; +} +static inline bool snd_soc_acpi_find_package_from_hid (const u8 hid[ACPI_ID_LEN ],struct snd_soc_acpi_package_context *ctx) {return false; } -#endif -/* acpi match */ -struct snd_soc_acpi_mach * -snd_soc_acpi_find_machine (struct snd_soc_acpi_mach *machines); +/* check all codecs */ +static inline struct snd_soc_acpi_mach *snd_soc_acpi_codec_list (void *arg) +{ +return NULL ; +} +#endif /** * snd_soc_acpi_mach_params: interface for machine driver configuration
@@ -105,7 +122,4 @@ struct snd_soc_acpi_codecs { u8 codecs[SND_SOC_ACPI_MAX_CODECS][ACPI_ID_LEN]; }; -/* check all codecs */ -struct snd_soc_acpi_mach *snd_soc_acpi_codec_list (void *arg); -#endif
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: soc-acpi: add static inline fallbacks when CONFIG_ACPI=n" to the asoc tree
The patch
ASoC: soc-acpi: add static inline fallbacks when CONFIG_ACPI=n
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
5e484ec1758b95e6420787fc17f0e8c5e152c264Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 25 Jan 2019 14:16:17 -0600
Subject: [PATCH] ASoC: soc-acpi: add static inline fallbacks when
CONFIG_ACPI=n
Fix compilation issues reported by 0day-Kbuild with sparc64 w/ SOF.
--- include/sound/soc-acpi.h | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-)
include/sound/soc-acpi.h +21 -7
@@ -22,20 +22,37 @@ struct snd_soc_acpi_package_context {#define SND_ACPI_I2C_ID_LEN (4 + ACPI_ID_LEN + 3 + 1)#if IS_ENABLED (CONFIG_ACPI ) +/* acpi match */ +struct snd_soc_acpi_mach * +snd_soc_acpi_find_machine (struct snd_soc_acpi_mach *machines); +bool snd_soc_acpi_find_package_from_hid (const u8 hid[ACPI_ID_LEN ],struct snd_soc_acpi_package_context *ctx); + +/* check all codecs */ +struct snd_soc_acpi_mach *snd_soc_acpi_codec_list (void *arg); +#else +/* acpi match */ +static inline struct snd_soc_acpi_mach * +snd_soc_acpi_find_machine (struct snd_soc_acpi_mach *machines) +{ +return NULL ; +} +static inline bool snd_soc_acpi_find_package_from_hid (const u8 hid[ACPI_ID_LEN ],struct snd_soc_acpi_package_context *ctx) {return false; } -#endif -/* acpi match */ -struct snd_soc_acpi_mach * -snd_soc_acpi_find_machine (struct snd_soc_acpi_mach *machines); +/* check all codecs */ +static inline struct snd_soc_acpi_mach *snd_soc_acpi_codec_list (void *arg) +{ +return NULL ; +} +#endif /** * snd_soc_acpi_mach_params: interface for machine driver configuration
@@ -105,7 +122,4 @@ struct snd_soc_acpi_codecs { u8 codecs[SND_SOC_ACPI_MAX_CODECS][ACPI_ID_LEN]; }; -/* check all codecs */ -struct snd_soc_acpi_mach *snd_soc_acpi_codec_list (void *arg); -#endif
Signature · 1 line
2.20.1