summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHan Gao <gaohan@iscas.ac.cn>2026-01-28 03:07:11 +0800
committerPaul Walmsley <pjw@kernel.org>2026-01-29 00:59:17 -0700
commit0ea05c4f7527a98f5946f96c829733788934311d (patch)
tree3302dd162ba445216d401b890b4bf4284761ce5f /arch
parent28a12ef366ecb118db19b92120a07b0491c1958e (diff)
riscv: compat: fix COMPAT_UTS_MACHINE definition
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/include/asm/compat.h2
1 files changed, 1 insertions, 1 deletions
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