diff options
author | Joe Lawrence <joe.lawrence@redhat.com> | 2021-08-23 00:50:37 +0200 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@redhat.com> | 2021-10-05 21:03:21 +0200 |
commit | fe255fe6ad97685e5a4be0d871f43288dbc10ad6 (patch) | |
tree | 42bb188b0a18749c5dfa7ac7eaa89dbfa0052daf /tools/objtool/orc_gen.c | |
parent | objtool: Make .altinstructions section entry size consistent (diff) | |
download | linux-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/orc_gen.c')
-rw-r--r-- | tools/objtool/orc_gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/orc_gen.c b/tools/objtool/orc_gen.c index dc9b7dd314b0..b5865e2450cb 100644 --- a/tools/objtool/orc_gen.c +++ b/tools/objtool/orc_gen.c @@ -204,7 +204,7 @@ int orc_create(struct objtool_file *file) /* Add a section terminator */ if (!empty) { - orc_list_add(&orc_list, &null, sec, sec->len); + orc_list_add(&orc_list, &null, sec, sec->sh.sh_size); nr++; } } |