* [PATCH v2] kernel module: fix apply_r_riscv_rcv_branch_rela typo
@ 2022-03-24 2:09 Wu Caize
2022-03-31 20:28 ` Palmer Dabbelt
0 siblings, 1 reply; 2+ messages in thread
From: Wu Caize @ 2022-03-24 2:09 UTC (permalink / raw)
To: palmer; +Cc: linux-riscv, paul.walmsley, Wu Caize
This patch fix typo: apply_r_riscv_rcv_branch_rela -> apply_r_riscv_rvc_branch_rela
Signed-off-by: Wu Caize <zepan@sipeed.com>
---
arch/riscv/kernel/module.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 68a9e3d1fe16..b92e93f2aac3 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/module.c
@@ -56,7 +56,7 @@ static int apply_r_riscv_jal_rela(struct module *me, u32 *location,
return 0;
}
-static int apply_r_riscv_rcv_branch_rela(struct module *me, u32 *location,
+static int apply_r_riscv_rvc_branch_rela(struct module *me, u32 *location,
Elf_Addr v)
{
ptrdiff_t offset = (void *)v - (void *)location;
@@ -290,7 +290,7 @@ static int (*reloc_handlers_rela[]) (struct module *me, u32 *location,
[R_RISCV_64] = apply_r_riscv_64_rela,
[R_RISCV_BRANCH] = apply_r_riscv_branch_rela,
[R_RISCV_JAL] = apply_r_riscv_jal_rela,
- [R_RISCV_RVC_BRANCH] = apply_r_riscv_rcv_branch_rela,
+ [R_RISCV_RVC_BRANCH] = apply_r_riscv_rvc_branch_rela,
[R_RISCV_RVC_JUMP] = apply_r_riscv_rvc_jump_rela,
[R_RISCV_PCREL_HI20] = apply_r_riscv_pcrel_hi20_rela,
[R_RISCV_PCREL_LO12_I] = apply_r_riscv_pcrel_lo12_i_rela,
--
2.25.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] kernel module: fix apply_r_riscv_rcv_branch_rela typo
2022-03-24 2:09 [PATCH v2] kernel module: fix apply_r_riscv_rcv_branch_rela typo Wu Caize
@ 2022-03-31 20:28 ` Palmer Dabbelt
0 siblings, 0 replies; 2+ messages in thread
From: Palmer Dabbelt @ 2022-03-31 20:28 UTC (permalink / raw)
To: zepan; +Cc: linux-riscv, Paul Walmsley, zepan
On Wed, 23 Mar 2022 19:09:21 PDT (-0700), zepan@sipeed.com wrote:
> This patch fix typo: apply_r_riscv_rcv_branch_rela -> apply_r_riscv_rvc_branch_rela
>
> Signed-off-by: Wu Caize <zepan@sipeed.com>
> ---
> arch/riscv/kernel/module.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
> index 68a9e3d1fe16..b92e93f2aac3 100644
> --- a/arch/riscv/kernel/module.c
> +++ b/arch/riscv/kernel/module.c
> @@ -56,7 +56,7 @@ static int apply_r_riscv_jal_rela(struct module *me, u32 *location,
> return 0;
> }
>
> -static int apply_r_riscv_rcv_branch_rela(struct module *me, u32 *location,
> +static int apply_r_riscv_rvc_branch_rela(struct module *me, u32 *location,
> Elf_Addr v)
> {
> ptrdiff_t offset = (void *)v - (void *)location;
> @@ -290,7 +290,7 @@ static int (*reloc_handlers_rela[]) (struct module *me, u32 *location,
> [R_RISCV_64] = apply_r_riscv_64_rela,
> [R_RISCV_BRANCH] = apply_r_riscv_branch_rela,
> [R_RISCV_JAL] = apply_r_riscv_jal_rela,
> - [R_RISCV_RVC_BRANCH] = apply_r_riscv_rcv_branch_rela,
> + [R_RISCV_RVC_BRANCH] = apply_r_riscv_rvc_branch_rela,
> [R_RISCV_RVC_JUMP] = apply_r_riscv_rvc_jump_rela,
> [R_RISCV_PCREL_HI20] = apply_r_riscv_pcrel_hi20_rela,
> [R_RISCV_PCREL_LO12_I] = apply_r_riscv_pcrel_lo12_i_rela,
Thanks, this is on for-next.
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-31 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-24 2:09 [PATCH v2] kernel module: fix apply_r_riscv_rcv_branch_rela typo Wu Caize
2022-03-31 20:28 ` Palmer Dabbelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox