lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220920081416.3570803-2-zengheng4@huawei.com>
Date:   Tue, 20 Sep 2022 16:14:14 +0800
From:   Zeng Heng <zengheng4@...wei.com>
To:     <jpoimboe@...nel.org>, <peterz@...radead.org>, <mbenes@...e.cz>
CC:     <linux-kernel@...r.kernel.org>, <zengheng4@...wei.com>,
        <liwei391@...wei.com>
Subject: [PATCH -next 1/3] tools: objtool: fix unused parameter warning in elf.c

Remove unused function parameter of internal function
'elf_rebuild_reloc_section'.

There is no logic changes.

Signed-off-by: Zeng Heng <zengheng4@...wei.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ