diff options
author | Ingo Molnar <mingo@kernel.org> | 2020-04-22 12:32:04 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-04-23 08:34:18 +0200 |
commit | bc359ff2f6f3e8a9df38c39017e269bc442357c7 (patch) | |
tree | efa493ce7dadb219e7a34411a53bba7b769217f1 /tools/objtool/elf.c | |
parent | objtool: Constify 'struct elf *' parameters (diff) | |
download | linux-bc359ff2f6f3e8a9df38c39017e269bc442357c7.tar.xz linux-bc359ff2f6f3e8a9df38c39017e269bc442357c7.zip |
objtool: Rename elf_read() to elf_open_read()
'struct elf *' handling is an open/close paradigm, make sure the naming
matches that:
elf_open_read()
elf_write()
elf_close()
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sami Tolvanen <samitolvanen@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200422103205.61900-3-mingo@kernel.org
Diffstat (limited to 'tools/objtool/elf.c')
-rw-r--r-- | tools/objtool/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index fab5534c3365..453b723c89d5 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -542,7 +542,7 @@ static int read_relas(struct elf *elf) return 0; } -struct elf *elf_read(const char *name, int flags) +struct elf *elf_open_read(const char *name, int flags) { struct elf *elf; Elf_Cmd cmd; |