Skip to content

Commit 6174876

Browse files
Wu Caizepalmer-dabbelt
authored andcommitted
RISC-V: module: fix apply_r_riscv_rcv_branch_rela typo
This function name was spelled incorrectly, likely to do a typo. Signed-off-by: Wu Caize <zepan@sipeed.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent f1de125 commit 6174876

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/riscv/kernel/module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int apply_r_riscv_jal_rela(struct module *me, u32 *location,
6969
return 0;
7070
}
7171

72-
static int apply_r_riscv_rcv_branch_rela(struct module *me, u32 *location,
72+
static int apply_r_riscv_rvc_branch_rela(struct module *me, u32 *location,
7373
Elf_Addr v)
7474
{
7575
ptrdiff_t offset = (void *)v - (void *)location;
@@ -301,7 +301,7 @@ static int (*reloc_handlers_rela[]) (struct module *me, u32 *location,
301301
[R_RISCV_64] = apply_r_riscv_64_rela,
302302
[R_RISCV_BRANCH] = apply_r_riscv_branch_rela,
303303
[R_RISCV_JAL] = apply_r_riscv_jal_rela,
304-
[R_RISCV_RVC_BRANCH] = apply_r_riscv_rcv_branch_rela,
304+
[R_RISCV_RVC_BRANCH] = apply_r_riscv_rvc_branch_rela,
305305
[R_RISCV_RVC_JUMP] = apply_r_riscv_rvc_jump_rela,
306306
[R_RISCV_PCREL_HI20] = apply_r_riscv_pcrel_hi20_rela,
307307
[R_RISCV_PCREL_LO12_I] = apply_r_riscv_pcrel_lo12_i_rela,

0 commit comments

Comments
 (0)