* [PATCH] riscv: compat: fix COMPAT_UTS_MACHINE definition
@ 2026-01-27 19:07 Han Gao
2026-01-29 1:17 ` Guo Ren
2026-01-29 8:24 ` Paul Walmsley
0 siblings, 2 replies; 3+ messages in thread
From: Han Gao @ 2026-01-27 19:07 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
Han Gao, Guo Ren
Cc: linux-riscv, linux-kernel, Han Gao, stable
The COMPAT_UTS_MACHINE for riscv was incorrectly defined as "riscv".
Change it to "riscv32" to reflect the correct 32-bit compat name.
Fixes: 06d0e3723647 ("riscv: compat: Add basic compat data type implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
---
arch/riscv/include/asm/compat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/include/asm/compat.h b/arch/riscv/include/asm/compat.h
index 6081327e55f5..28e115eed218 100644
--- a/arch/riscv/include/asm/compat.h
+++ b/arch/riscv/include/asm/compat.h
@@ -2,7 +2,7 @@
#ifndef __ASM_COMPAT_H
#define __ASM_COMPAT_H
-#define COMPAT_UTS_MACHINE "riscv\0\0"
+#define COMPAT_UTS_MACHINE "riscv32\0\0"
/*
* Architecture specific compatibility types
--
2.47.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] riscv: compat: fix COMPAT_UTS_MACHINE definition
2026-01-27 19:07 [PATCH] riscv: compat: fix COMPAT_UTS_MACHINE definition Han Gao
@ 2026-01-29 1:17 ` Guo Ren
2026-01-29 8:24 ` Paul Walmsley
1 sibling, 0 replies; 3+ messages in thread
From: Guo Ren @ 2026-01-29 1:17 UTC (permalink / raw)
To: Han Gao
Cc: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
linux-riscv, linux-kernel, Han Gao, stable
On Wed, Jan 28, 2026 at 03:07:11AM +0800, Han Gao wrote:
> The COMPAT_UTS_MACHINE for riscv was incorrectly defined as "riscv".
> Change it to "riscv32" to reflect the correct 32-bit compat name.
>
> Fixes: 06d0e3723647 ("riscv: compat: Add basic compat data type implementation")
> Cc: stable@vger.kernel.org
>
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
> ---
> arch/riscv/include/asm/compat.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/include/asm/compat.h b/arch/riscv/include/asm/compat.h
> index 6081327e55f5..28e115eed218 100644
> --- a/arch/riscv/include/asm/compat.h
> +++ b/arch/riscv/include/asm/compat.h
> @@ -2,7 +2,7 @@
> #ifndef __ASM_COMPAT_H
> #define __ASM_COMPAT_H
>
> -#define COMPAT_UTS_MACHINE "riscv\0\0"
> +#define COMPAT_UTS_MACHINE "riscv32\0\0"
Good catch, my typo. The UTS_MACHINE is riscv32 in Makefile. Thx for fixup.
Reviewed-by: Guo Ren (Alibaba Damo Academy) <guoren@kernel.org>
>
> /*
> * Architecture specific compatibility types
> --
> 2.47.3
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] riscv: compat: fix COMPAT_UTS_MACHINE definition
2026-01-27 19:07 [PATCH] riscv: compat: fix COMPAT_UTS_MACHINE definition Han Gao
2026-01-29 1:17 ` Guo Ren
@ 2026-01-29 8:24 ` Paul Walmsley
1 sibling, 0 replies; 3+ messages in thread
From: Paul Walmsley @ 2026-01-29 8:24 UTC (permalink / raw)
To: Han Gao
Cc: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
Guo Ren, linux-riscv, linux-kernel, Han Gao, stable
Hi,
On Wed, 28 Jan 2026, Han Gao wrote:
> The COMPAT_UTS_MACHINE for riscv was incorrectly defined as "riscv".
> Change it to "riscv32" to reflect the correct 32-bit compat name.
>
> Fixes: 06d0e3723647 ("riscv: compat: Add basic compat data type implementation")
> Cc: stable@vger.kernel.org
>
No blank lines between tags, please.
> Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
Thanks, queued for v6.19-rc.
- Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-29 8:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-27 19:07 [PATCH] riscv: compat: fix COMPAT_UTS_MACHINE definition Han Gao
2026-01-29 1:17 ` Guo Ren
2026-01-29 8:24 ` Paul Walmsley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox