Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: pata_cs5536: fix build on 32-bit UML

On 32-bit ARCH=um, CONFIG_X86_32 is still defined, so it
doesn't indicate building on real X86 machines. There's
no MSR on UML though, so add a check for CONFIG_X86.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20250606090110.15784-2-johannes@sipsolutions.net
Signed-off-by: Niklas Cassel <cassel@kernel.org>

authored by

Johannes Berg and committed by
Niklas Cassel
fe5b391f 33877220

+1 -1
+1 -1
drivers/ata/pata_cs5536.c
··· 27 27 #include <scsi/scsi_host.h> 28 28 #include <linux/dmi.h> 29 29 30 - #ifdef CONFIG_X86_32 30 + #if defined(CONFIG_X86) && defined(CONFIG_X86_32) 31 31 #include <asm/msr.h> 32 32 static int use_msr; 33 33 module_param_named(msr, use_msr, int, 0644);