acrn-kernel/sound/soc/intel/common
Arnd Bergmann 3e78986a84
ASoC: Intel: sof-nau8825: fix module alias overflow
The maximum name length for a platform_device_id entry is 20 characters
including the trailing NUL byte. The sof_nau8825.c file exceeds that,
which causes an obscure error message:

sound/soc/intel/boards/snd-soc-sof_nau8825.mod.c:35:45: error: illegal character encoding in string literal [-Werror,-Winvalid-source-encoding]
MODULE_ALIAS("platform:adl_max98373_nau8825<U+0018><AA>");
                                                   ^~~~
include/linux/module.h:168:49: note: expanded from macro 'MODULE_ALIAS'
                                                ^~~~~~
include/linux/module.h:165:56: note: expanded from macro 'MODULE_INFO'
                                                       ^~~~
include/linux/moduleparam.h:26:47: note: expanded from macro '__MODULE_INFO'
                = __MODULE_INFO_PREFIX __stringify(tag) "=" info

I could not figure out how to make the module handling robust enough
to handle this better, but as a quick fix, using slightly shorter
names that are still unique avoids the build issue.

Fixes: 8d0872f623 ("ASoC: Intel: add sof-nau8825 machine driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20221221132515.2363276-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-12-26 23:23:18 +00:00
..
Makefile ASoC: Intel: common: add ACPI matching tables for Raptor Lake 2022-08-16 14:48:22 +01:00
soc-acpi-intel-adl-match.c ASoC: Intel: sof-nau8825: fix module alias overflow 2022-12-26 23:23:18 +00:00
soc-acpi-intel-bxt-match.c
soc-acpi-intel-byt-match.c
soc-acpi-intel-cfl-match.c
soc-acpi-intel-cht-match.c
soc-acpi-intel-cml-match.c
soc-acpi-intel-cnl-match.c
soc-acpi-intel-ehl-match.c
soc-acpi-intel-glk-match.c
soc-acpi-intel-hda-match.c
soc-acpi-intel-hsw-bdw-match.c
soc-acpi-intel-icl-match.c ASoC: Intel: soc-acpi: add ES83x6 support to IceLake 2022-10-31 21:15:16 +00:00
soc-acpi-intel-jsl-match.c ASoC: Intel: sof_rt5682: add jsl_rt5682 board config 2022-12-07 14:19:07 +00:00
soc-acpi-intel-kbl-match.c
soc-acpi-intel-mtl-match.c ASoC: Intel: soc-acpi: add MTL AIC SoundWire configurations 2022-11-10 23:03:26 +00:00
soc-acpi-intel-rpl-match.c ASoC: Intel: soc-acpi: add configuration for variant of 0C11 product 2022-12-26 23:23:14 +00:00
soc-acpi-intel-sdw-mockup-match.c
soc-acpi-intel-sdw-mockup-match.h
soc-acpi-intel-skl-match.c
soc-acpi-intel-tgl-match.c
soc-intel-quirks.h
sst-dsp-priv.h
sst-dsp.c
sst-dsp.h
sst-ipc.c
sst-ipc.h