lkml.org 
[lkml]   [2022]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next 1/3] tools: objtool: fix unused parameter warning in elf.c
Date
Remove unused function parameter of internal function
'elf_rebuild_reloc_section'.

There is no logic changes.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
---
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
\
 
 \ /
  Last update: 2022-09-20 10:12    [W:0.031 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site