d7aaf5659b
* update man and --help * powerpc/kexec_load: add hotplug support * kexec_load: Use new kexec flag for hotplug support * x86-linux-setup.c: Use POSIX basename API * LoongArch: fix load command line segment error * LoongArch: add multi crash kernel segment support * LoongArch: fix kernel image size error * Arm: Fix add_buffer_phys_virt() align issue * Fix incorrect Free Software Foundation address in the license * util_lib/elf_info.c: fix a warning * kexec_file: add kexec_file flag to support debug printing * workflow: update to use checkout@v4 - drop kexec-dont-use-kexec_file_load-on-xen.patch, upstream - drop fix-building-on-x86_64-with-binutils-2.41.patch, upstream - kexec-tools-riscv-hotplug.patch: Fix build for riscv64. OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=169
24 lines
946 B
Diff
24 lines
946 B
Diff
From: Petr Tesarik <ptesarik@suse.com>
|
|
Subject: riscv: fix build with hotplug support
|
|
Upstream: not yet, blocked by base RISC-V patches
|
|
|
|
Commit 3c47f384f1c4 ("kexec_load: Use new kexec flag for hotplug support")
|
|
adds a new architecture-specific function named arch_do_exclude_segment.
|
|
Since RISC-V does not yet implement hotplug updates in the kernel, add a
|
|
trivial definition of this function to kexec-tools.
|
|
|
|
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
|
|
Index: kexec-tools-2.0.29/kexec/arch/riscv/kexec-riscv.c
|
|
===================================================================
|
|
--- kexec-tools-2.0.29.orig/kexec/arch/riscv/kexec-riscv.c
|
|
+++ kexec-tools-2.0.29/kexec/arch/riscv/kexec-riscv.c
|
|
@@ -362,3 +362,8 @@ int arch_compat_trampoline(struct kexec_
|
|
void arch_update_purgatory(struct kexec_info *UNUSED(info))
|
|
{
|
|
}
|
|
+
|
|
+int arch_do_exclude_segment(struct kexec_info *UNUSED(info), struct kexec_segment *UNUSED(segment))
|
|
+{
|
|
+ return 0;
|
|
+}
|