ata: pata_cs5536: fix build on 32-bit UML
PATCH 1/1 ata: pata_cs5536: fix build on 32-bit UML
From: Johannes Berg <[email protected]>
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.
--- drivers/ata/pata_cs5536.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_cs5536.c +1 -1
@@ -27,7 +27,7 @@#include <scsi/scsi_host.h> #include <linux/dmi.h> -#ifdef CONFIG_X86_32 +#if defined(CONFIG_X86 ) && defined(CONFIG_X86_32 )#include <asm/msr.h> static int use_msr;module_param_named (msr, use_msr, int,0644 );
Signature · 1 line
2.49.0
Niklas Cassel
maintainerHello Johannes,
Quoted 7 lines · Johannes Berg
From: Johannes Berg <[email protected]>
On 32-bit ARCH=um,
CONFIG_X86_32is still defined, so it doesn't indicate building on real X86 machines. There's no MSR on UML though, so add a check forCONFIG_X86.Reported-by Arnd Bergmann <[email protected]>
Reported-by: should be followed by either a Closes: or Link: tag, see:
https://docs.kernel.org/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes
Kind regards,
Niklas
Quoted 21 lines
Signed-off-by Johannes Berg <[email protected]>--- drivers/ata/pata_cs5536.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/pata_cs5536.c +1
-1@@ -27,7 +27,7 @@#include <scsi/scsi_host.h> #include <linux/dmi.h> -#ifdef CONFIG_X86_32 +#if defined(CONFIG_X86 ) && defined(CONFIG_X86_32 )#include <asm/msr.h> static int use_msr;module_param_named (msr, use_msr, int,0644 );Signature · 1 line
2.49.0
Quoted 5 lines · Niklas Cassel
Hello Johannes,
Quoted 2 lines · Johannes Berg
From: Johannes Berg <[email protected]>
Quoted 8 lines
Quoted 5 lines
On 32-bit ARCH=um,
CONFIG_X86_32is still defined, so it doesn't indicate building on real X86 machines. There's no MSR on UML though, so add a check forCONFIG_X86.Reported-by Arnd Bergmann <[email protected]>Reported-by: should be followed by either a Closes: or Link: tag, see:
https://docs.kernel.org/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes
Here you go:
johannes
Quoted 5 lines · Johannes Berg
On 32-bit ARCH=um,
CONFIG_X86_32is still defined, so it doesn't indicate building on real X86 machines. There's no MSR on UML though, so add a check forCONFIG_X86.
Applied to libata/linux.git (for-6.16-fixes), thanks!
[1/1] ata: pata_cs5536: fix build on 32-bit UML
https://git.kernel.org/libata/linux/c/fe5b391f
Kind regards,
Niklas