]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: Intel: avs: Include CPUID header at file scope
authorAhmed S. Darwish <darwi@linutronix.de>
Fri, 27 Mar 2026 02:15:16 +0000 (03:15 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 27 Mar 2026 23:29:30 +0000 (00:29 +0100)
commit7f78e0b46e9984e955cb73ffada8dace8b4dd059
tree0a8bb727e5073b9a9c990ee5189debd63673e432
parent93a1f0e61329f538cfc7122d7fa0e7a1803e326d
ASoC: Intel: avs: Include CPUID header at file scope

Commit

    cbe37a4d2b3c ("ASoC: Intel: avs: Configure basefw on TGL-based platforms")

includes the main CPUID header from within a C function.  This works by
luck and forbids valid refactoring inside that header.

Include the CPUID header at file scope instead.

Remove the COMPILE_TEST build flag so that the CONFIG_X86 conditionals can
be removed.  The driver gets enough compilation testing already on x86.

For clarity, refactor the CPUID(0x15) code into its own function without
changing any of the driver's logic.

Fixes: cbe37a4d2b3c ("ASoC: Intel: avs: Configure basefw on TGL-based platforms")
Suggested-by: Borislav Petkov <bp@alien8.de> # CONFIG_X86 removal
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/all/20250612234010.572636-3-darwi@linutronix.de
sound/soc/intel/Kconfig
sound/soc/intel/avs/tgl.c