summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwi@linutronix.de>2026-03-27 03:15:16 +0100
committerBorislav Petkov (AMD) <bp@alien8.de>2026-03-28 00:29:30 +0100
commit7f78e0b46e9984e955cb73ffada8dace8b4dd059 (patch)
tree0a8bb727e5073b9a9c990ee5189debd63673e432 /rust/kernel
parent93a1f0e61329f538cfc7122d7fa0e7a1803e326d (diff)
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
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions