[PATCH kexec-tools] ia64: ehdr is not UNUSED in machine_apply_elf_rel

Simon Horman horms at verge.net.au
Fri Dec 9 00:49:19 PST 2016


The ehdr parameter of machine_apply_elf_rel() is used.
This resolves a build regression.

Cc: Anton Blanchard <anton at samba.org>
Cc: Dave Young <dyoung at redhat.com>
Fixes: 4a2ae3a39c64 ("Pass struct mem_sym into machine_apply_elf_rel()")
Signed-off-by: Simon Horman <horms at verge.net.au>
---
 kexec/arch/ia64/kexec-elf-rel-ia64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/arch/ia64/kexec-elf-rel-ia64.c b/kexec/arch/ia64/kexec-elf-rel-ia64.c
index f847626b2508..7f7c08cba4b1 100644
--- a/kexec/arch/ia64/kexec-elf-rel-ia64.c
+++ b/kexec/arch/ia64/kexec-elf-rel-ia64.c
@@ -72,7 +72,7 @@ bundle (const uint64_t insn)
         return insn & ~0xfUL;
 }
 
-void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr),
+void machine_apply_elf_rel(struct mem_ehdr *ehdr,
 	struct mem_sym *UNUSED(sym), unsigned long r_type, void *location,
 	unsigned long address, unsigned long value)
 {
-- 
2.7.0.rc3.207.g0ac5344




More information about the kexec mailing list