[PATCH] riscv: compat: fix COMPAT_UTS_MACHINE definition

From: Han Gao

Date: Tue Jan 27 2026 - 14:07:51 EST


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@xxxxxxxxxxxxxxx

Signed-off-by: Han Gao <gaohan@xxxxxxxxxxx>
---
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