]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: compat: fix COMPAT_UTS_MACHINE definition
authorHan Gao <gaohan@iscas.ac.cn>
Tue, 27 Jan 2026 19:07:11 +0000 (03:07 +0800)
committerPaul Walmsley <pjw@kernel.org>
Thu, 29 Jan 2026 07:59:17 +0000 (00:59 -0700)
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>
Reviewed-by: Guo Ren (Alibaba Damo Academy) <guoren@kernel.org>
Link: https://patch.msgid.link/20260127190711.2264664-1-gaohan@iscas.ac.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/compat.h

index 6081327e55f5b68c95e277a2e57e86dc295e8871..28e115eed2180564d9f1c8ebc891102485d90ce3 100644 (file)
@@ -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