All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ata: pata_cs5536: fix build on 32-bit UML
@ 2025-06-06  9:01 Johannes Berg
  2025-06-09  9:44 ` Niklas Cassel
  2025-06-10 12:33 ` Niklas Cassel
  0 siblings, 2 replies; 4+ messages in thread
From: Johannes Berg @ 2025-06-06  9:01 UTC (permalink / raw)
  To: linux-kernel, linux-ide
  Cc: Damien Le Moal, Niklas Cassel, Johannes Berg, Arnd Bergmann

From: Johannes Berg <johannes.berg@intel.com>

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>
---
 drivers/ata/pata_cs5536.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/pata_cs5536.c b/drivers/ata/pata_cs5536.c
index b811efd2cc34..73e81e160c91 100644
--- a/drivers/ata/pata_cs5536.c
+++ b/drivers/ata/pata_cs5536.c
@@ -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);
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ata: pata_cs5536: fix build on 32-bit UML
  2025-06-06  9:01 [PATCH] ata: pata_cs5536: fix build on 32-bit UML Johannes Berg
@ 2025-06-09  9:44 ` Niklas Cassel
  2025-06-09 17:13   ` Johannes Berg
  2025-06-10 12:33 ` Niklas Cassel
  1 sibling, 1 reply; 4+ messages in thread
From: Niklas Cassel @ 2025-06-09  9:44 UTC (permalink / raw)
  To: Johannes Berg
  Cc: linux-kernel, linux-ide, Damien Le Moal, Johannes Berg,
	Arnd Bergmann

Hello Johannes,

On Fri, Jun 06, 2025 at 11:01:11AM +0200, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> 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>

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

> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> ---
>  drivers/ata/pata_cs5536.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/ata/pata_cs5536.c b/drivers/ata/pata_cs5536.c
> index b811efd2cc34..73e81e160c91 100644
> --- a/drivers/ata/pata_cs5536.c
> +++ b/drivers/ata/pata_cs5536.c
> @@ -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);
> -- 
> 2.49.0
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ata: pata_cs5536: fix build on 32-bit UML
  2025-06-09  9:44 ` Niklas Cassel
@ 2025-06-09 17:13   ` Johannes Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2025-06-09 17:13 UTC (permalink / raw)
  To: Niklas Cassel; +Cc: linux-kernel, linux-ide, Damien Le Moal, Arnd Bergmann

On Mon, 2025-06-09 at 11:44 +0200, Niklas Cassel wrote:
> Hello Johannes,
> 
> On Fri, Jun 06, 2025 at 11:01:11AM +0200, Johannes Berg wrote:
> > From: Johannes Berg <johannes.berg@intel.com>
> > 
> > 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>
> 
> 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:

Link: Arnd said so on IRC.

johannes

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ata: pata_cs5536: fix build on 32-bit UML
  2025-06-06  9:01 [PATCH] ata: pata_cs5536: fix build on 32-bit UML Johannes Berg
  2025-06-09  9:44 ` Niklas Cassel
@ 2025-06-10 12:33 ` Niklas Cassel
  1 sibling, 0 replies; 4+ messages in thread
From: Niklas Cassel @ 2025-06-10 12:33 UTC (permalink / raw)
  To: linux-kernel, linux-ide, Johannes Berg
  Cc: Damien Le Moal, Johannes Berg, Arnd Bergmann

On Fri, 06 Jun 2025 11:01:11 +0200, Johannes Berg wrote:
> 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.
> 
> 

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-10 12:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-06  9:01 [PATCH] ata: pata_cs5536: fix build on 32-bit UML Johannes Berg
2025-06-09  9:44 ` Niklas Cassel
2025-06-09 17:13   ` Johannes Berg
2025-06-10 12:33 ` Niklas Cassel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.