linux/sound/soc/intel
Arnd Bergmann fba1b23bef ASoC: Intel: sof-nau8825: fix module alias overflow
[ Upstream commit 3e78986a84 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-01-18 11:58:23 +01:00
..
atom ASoC: Updates for v6.1 2022-10-03 16:30:42 +02:00
avs ASoC: Intel: avs: Add quirk for KBL-R RVP platform 2022-12-31 13:32:59 +01:00
boards ASoC: Intel: sof-nau8825: fix module alias overflow 2023-01-18 11:58:23 +01:00
catpt ASoC: Intel: catpt: Drop SND_SOC_ACPI_INTEL_MATCH dependency 2022-08-16 13:08:03 +01:00
common ASoC: Intel: sof-nau8825: fix module alias overflow 2023-01-18 11:58:23 +01:00
keembay ASoC: Intel: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:27 +01:00
skylake ASoC: Intel: Skylake: Fix driver hang during shutdown 2022-12-31 13:33:06 +01:00
Kconfig ASoC: Intel: Skylake: Fix Kconfig dependency 2022-12-31 13:32:14 +01:00
Makefile ASoC: Intel: Introduce AVS driver 2022-03-11 16:23:54 +00:00