* [PATCH] riscv: Remove duplicated GET_RM
@ 2024-09-09 9:55 Chunyan Zhang
2024-09-09 10:10 ` Alexandre Ghiti
2024-10-24 18:10 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 3+ messages in thread
From: Chunyan Zhang @ 2024-09-09 9:55 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Andrew Morton,
Alexandre Ghiti
Cc: linux-riscv, linux-kernel, Chunyan Zhang
The macro GET_RM defined twice in this file, one can be removed.
Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
---
arch/riscv/kernel/traps_misaligned.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/riscv/kernel/traps_misaligned.c b/arch/riscv/kernel/traps_misaligned.c
index b62d5a2f4541..2a9b72dcd648 100644
--- a/arch/riscv/kernel/traps_misaligned.c
+++ b/arch/riscv/kernel/traps_misaligned.c
@@ -136,8 +136,6 @@
#define REG_PTR(insn, pos, regs) \
(ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
-#define GET_RM(insn) (((insn) >> 12) & 7)
-
#define GET_RS1(insn, regs) (*REG_PTR(insn, SH_RS1, regs))
#define GET_RS2(insn, regs) (*REG_PTR(insn, SH_RS2, regs))
#define GET_RS1S(insn, regs) (*REG_PTR(RVC_RS1S(insn), 0, regs))
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] riscv: Remove duplicated GET_RM
2024-09-09 9:55 [PATCH] riscv: Remove duplicated GET_RM Chunyan Zhang
@ 2024-09-09 10:10 ` Alexandre Ghiti
2024-10-24 18:10 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Ghiti @ 2024-09-09 10:10 UTC (permalink / raw)
To: Chunyan Zhang, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Andrew Morton
Cc: linux-riscv, linux-kernel, Chunyan Zhang
Hi Chunyan,
On 09/09/2024 11:55, Chunyan Zhang wrote:
> The macro GET_RM defined twice in this file, one can be removed.
>
> Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
> ---
> arch/riscv/kernel/traps_misaligned.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/riscv/kernel/traps_misaligned.c b/arch/riscv/kernel/traps_misaligned.c
> index b62d5a2f4541..2a9b72dcd648 100644
> --- a/arch/riscv/kernel/traps_misaligned.c
> +++ b/arch/riscv/kernel/traps_misaligned.c
> @@ -136,8 +136,6 @@
> #define REG_PTR(insn, pos, regs) \
> (ulong *)((ulong)(regs) + REG_OFFSET(insn, pos))
>
> -#define GET_RM(insn) (((insn) >> 12) & 7)
> -
> #define GET_RS1(insn, regs) (*REG_PTR(insn, SH_RS1, regs))
> #define GET_RS2(insn, regs) (*REG_PTR(insn, SH_RS2, regs))
> #define GET_RS1S(insn, regs) (*REG_PTR(RVC_RS1S(insn), 0, regs))
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Thanks,
Alex
_______________________________________________
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: Remove duplicated GET_RM
2024-09-09 9:55 [PATCH] riscv: Remove duplicated GET_RM Chunyan Zhang
2024-09-09 10:10 ` Alexandre Ghiti
@ 2024-10-24 18:10 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-10-24 18:10 UTC (permalink / raw)
To: Chunyan Zhang
Cc: linux-riscv, paul.walmsley, palmer, aou, akpm, alex, linux-kernel,
zhang.lyra
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Mon, 9 Sep 2024 17:55:57 +0800 you wrote:
> The macro GET_RM defined twice in this file, one can be removed.
>
> Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
> ---
> arch/riscv/kernel/traps_misaligned.c | 2 --
> 1 file changed, 2 deletions(-)
Here is the summary with links:
- riscv: Remove duplicated GET_RM
https://git.kernel.org/riscv/c/4c6b61b5d35e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
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
end of thread, other threads:[~2024-10-24 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-09 9:55 [PATCH] riscv: Remove duplicated GET_RM Chunyan Zhang
2024-09-09 10:10 ` Alexandre Ghiti
2024-10-24 18:10 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox