summaryrefslogtreecommitdiffstats
path: root/tools/objtool/include
diff options
context:
space:
mode:
authorJoe Lawrence <joe.lawrence@redhat.com>2021-08-23 00:50:37 +0200
committerJosh Poimboeuf <jpoimboe@redhat.com>2021-10-05 21:03:21 +0200
commitfe255fe6ad97685e5a4be0d871f43288dbc10ad6 (patch)
tree42bb188b0a18749c5dfa7ac7eaa89dbfa0052daf /tools/objtool/include
parentobjtool: Make .altinstructions section entry size consistent (diff)
downloadlinux-fe255fe6ad97685e5a4be0d871f43288dbc10ad6.tar.xz
linux-fe255fe6ad97685e5a4be0d871f43288dbc10ad6.zip
objtool: Remove redundant 'len' field from struct section
The section structure already contains sh_size, so just remove the extra 'len' member that requires extra mirroring and potential confusion. Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20210822225037.54620-3-joe.lawrence@redhat.com Cc: Andy Lavr <andy.lavr@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: x86@kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'tools/objtool/include')
-rw-r--r--tools/objtool/include/objtool/elf.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/objtool/include/objtool/elf.h b/tools/objtool/include/objtool/elf.h
index e34395047530..075d8291b854 100644
--- a/tools/objtool/include/objtool/elf.h
+++ b/tools/objtool/include/objtool/elf.h
@@ -38,7 +38,6 @@ struct section {
Elf_Data *data;
char *name;
int idx;
- unsigned int len;
bool changed, text, rodata, noinstr;
};