Skip to contentSkip to conversation

RISC-V: kexec: Define arch_kexec_apply_relocations_add

PATCH New Palmer Dabbelt 1 participant 1 message May 30, 2022 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RISC-V: kexec: Define arch_kexec_apply_relocations_add

3e35142ef99f ("kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]") converts arch_kexec_apply_relocations_add() from weak to ifdef, which landed while 838b3e28488f ("RISC-V: Load purgatory in kexec_file") was in a different tree. This converts the RISC-V port over to an ifdef override.

Fixes 838b3e28488f ("RISC-V: Load purgatory in kexec_file")
---
 arch/riscv/include/asm/kexec.h | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/riscv/include/asm/kexec.h +8 -0
index 206217b23301..a38769d50a80 100644
@@ -55,6 +55,14 @@ extern riscv_kexec_method riscv_kexec_norelocate;
 
 #ifdef CONFIG_KEXEC_FILE
 extern const struct kexec_file_ops elf_kexec_ops;
+
+struct purgatory_info;
+int arch_kexec_apply_relocations_add(struct purgatory_info *pi,
+				     Elf_Shdr *section,
+				     const Elf_Shdr *relsec,
+				     const Elf_Shdr *symtab);
+#define arch_kexec_apply_relocations_add arch_kexec_apply_relocations_add
 #endif
 
+
 #endif
Signature · 7 lines
2.34.1


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