Skip to contentSkip to conversation

riscv: fix minor typo in syscall.h comment

PATCH In review Austin Kim 2 participants 3 messages Jan 19 – Jan 26 RISC-V

lore
Share & tools
lore

Austin Kim

author
#0 lore raw

PATCH 1/1 riscv: fix minor typo in syscall.h comment

From: Austin Kim <[email protected]>

Some developers may be confused because RISC-V does not have a register named r0. Also, orig_r0 is not available in pt_regs structure, which is specific to riscv. So we had better fix this minor typo.

---
 arch/riscv/include/asm/syscall.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/include/asm/syscall.h +1 -1
index 34313387f..8067e666a 100644
@@ -20,7 +20,7 @@ extern void * const sys_call_table[];
 extern void * const compat_sys_call_table[];
 
 /*
- * Only the low 32 bits of orig_r0 are meaningful, so we return int.
+ * Only the low 32 bits of orig_a0 are meaningful, so we return int.
  * This importantly ignores the high bits on 64-bit, so comparisons
  * sign-extend the low 32 bits.
  */
Signature · 7 lines
2.34.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
maintainer
#1 lore raw
Quoted 7 lines · Austin Kim

From: Austin Kim <[email protected]>

Some developers may be confused because RISC-V does not have a register named r0. Also, orig_r0 is not available in pt_regs structure, which is specific to riscv. So we had better fix this minor typo.

Thanks, queued for v6.20.

- Paul

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

author
#2 lore raw

2026년 1월 24일 (토) PM 4:55, Paul Walmsley <[email protected]>님이 작성:

Quoted 12 lines · Austin Kim
Quoted 8 lines

From: Austin Kim <[email protected]>

Some developers may be confused because RISC-V does not have a register named r0. Also, orig_r0 is not available in pt_regs structure, which is specific to riscv. So we had better fix this minor typo.

Thanks, queued for v6.20.

Great! Thank you again.

BR,
Austin Kim

Quoted 3 lines

- Paul