Skip to content

Commit fe5b391

Browse files
jmberg-intelfloatious
authored andcommitted
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>
1 parent 3387722 commit fe5b391

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ata/pata_cs5536.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <scsi/scsi_host.h>
2828
#include <linux/dmi.h>
2929

30-
#ifdef CONFIG_X86_32
30+
#if defined(CONFIG_X86) && defined(CONFIG_X86_32)
3131
#include <asm/msr.h>
3232
static int use_msr;
3333
module_param_named(msr, use_msr, int, 0644);

0 commit comments

Comments
 (0)