All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc/irq: Use str_enabled_disabled() helper function
@ 2025-01-15  9:03 Thorsten Blum
  2025-01-17 15:10 ` Andreas Larsson
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-01-15  9:03 UTC (permalink / raw)
  To: David S. Miller, Andreas Larsson, Bjorn Helgaas, Dawei Li,
	Sam Ravnborg, Randy Dunlap
  Cc: Thorsten Blum, sparclinux, linux-kernel

Remove hard-coded strings by using the str_enabled_disabled() helper
function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 arch/sparc/kernel/irq_64.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c
index 01ee800efde3..aff0d24f8c6f 100644
--- a/arch/sparc/kernel/irq_64.c
+++ b/arch/sparc/kernel/irq_64.c
@@ -22,6 +22,7 @@
 #include <linux/seq_file.h>
 #include <linux/ftrace.h>
 #include <linux/irq.h>
+#include <linux/string_choices.h>
 
 #include <asm/ptrace.h>
 #include <asm/processor.h>
@@ -170,7 +171,7 @@ static void __init irq_init_hv(void)
 
 	pr_info("SUN4V: Using IRQ API major %d, cookie only virqs %s\n",
 		hv_irq_version,
-		sun4v_cookie_only_virqs() ? "enabled" : "disabled");
+		str_enabled_disabled(sun4v_cookie_only_virqs()));
 }
 
 /* This function is for the timer interrupt.*/
-- 
2.47.1


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

* Re: [PATCH] sparc/irq: Use str_enabled_disabled() helper function
  2025-01-15  9:03 [PATCH] sparc/irq: Use str_enabled_disabled() helper function Thorsten Blum
@ 2025-01-17 15:10 ` Andreas Larsson
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Larsson @ 2025-01-17 15:10 UTC (permalink / raw)
  To: Thorsten Blum, David S. Miller, Bjorn Helgaas, Dawei Li,
	Sam Ravnborg, Randy Dunlap
  Cc: sparclinux, linux-kernel

On 2025-01-15 10:03, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_enabled_disabled() helper
> function.
> 
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
>  arch/sparc/kernel/irq_64.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c
> index 01ee800efde3..aff0d24f8c6f 100644
> --- a/arch/sparc/kernel/irq_64.c
> +++ b/arch/sparc/kernel/irq_64.c
> @@ -22,6 +22,7 @@
>  #include <linux/seq_file.h>
>  #include <linux/ftrace.h>
>  #include <linux/irq.h>
> +#include <linux/string_choices.h>
>  
>  #include <asm/ptrace.h>
>  #include <asm/processor.h>
> @@ -170,7 +171,7 @@ static void __init irq_init_hv(void)
>  
>  	pr_info("SUN4V: Using IRQ API major %d, cookie only virqs %s\n",
>  		hv_irq_version,
> -		sun4v_cookie_only_virqs() ? "enabled" : "disabled");
> +		str_enabled_disabled(sun4v_cookie_only_virqs()));
>  }
>  
>  /* This function is for the timer interrupt.*/

Reviewed-by: Andreas Larsson <andreas@gaisler.com>

Picking this up to my for-next.

Thanks,
Andreas


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

end of thread, other threads:[~2025-01-17 15:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15  9:03 [PATCH] sparc/irq: Use str_enabled_disabled() helper function Thorsten Blum
2025-01-17 15:10 ` Andreas Larsson

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.