[PATCH -next 1/3] tools: objtool: fix unused parameter warning in elf.c

From: Zeng Heng
Date: Tue Sep 20 2022 - 04:11:55 EST


Remove unused function parameter of internal function
'elf_rebuild_reloc_section'.

There is no logic changes.

Signed-off-by: Zeng Heng <zengheng4@xxxxxxxxxx>
---
tools/objtool/elf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index c25e957c1e52..356af4d16d3f 100644
--- a/tools/objtool/elf.c
+++ b/tools/objtool/elf.c
@@ -1224,7 +1224,7 @@ static int elf_rebuild_rela_reloc_section(struct section *sec)
return 0;
}

-static int elf_rebuild_reloc_section(struct elf *elf, struct section *sec)
+static int elf_rebuild_reloc_section(struct section *sec)
{
switch (sec->sh.sh_type) {
case SHT_REL: return elf_rebuild_rel_reloc_section(sec);
@@ -1302,7 +1302,7 @@ int elf_write(struct elf *elf)
}

if (sec->base &&
- elf_rebuild_reloc_section(elf, sec)) {
+ elf_rebuild_reloc_section(sec)) {
WARN("elf_rebuild_reloc_section");
return -1;
}
--
2.25.1