objtool: Rename find_containing_func()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 16 Mar 2020 09:36:53 +0000 (10:36 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 25 Mar 2020 17:28:29 +0000 (18:28 +0100)
For consistency; we have:

  find_symbol_by_offset() / find_symbol_containing()
  find_func_by_offset()   / find_containing_func()

fix that.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20200324160924.558470724@infradead.org
tools/objtool/elf.c
tools/objtool/elf.h
tools/objtool/warn.h

index 3a8b426..07db4df 100644 (file)
@@ -187,7 +187,7 @@ struct symbol *find_symbol_containing(struct section *sec, unsigned long offset)
        return NULL;
 }
 
-struct symbol *find_containing_func(struct section *sec, unsigned long offset)
+struct symbol *find_func_containing(struct section *sec, unsigned long offset)
 {
        struct rb_node *node;
 
index e4a8d68..d18f466 100644 (file)
@@ -91,7 +91,7 @@ struct symbol *find_symbol_containing(struct section *sec, unsigned long offset)
 struct rela *find_rela_by_dest(struct section *sec, unsigned long offset);
 struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset,
                                     unsigned int len);
-struct symbol *find_containing_func(struct section *sec, unsigned long offset);
+struct symbol *find_func_containing(struct section *sec, unsigned long offset);
 struct section *elf_create_section(struct elf *elf, const char *name, size_t
                                   entsize, int nr);
 struct section *elf_create_rela_section(struct elf *elf, struct section *base);
index cbb0a02..7799f60 100644 (file)
@@ -21,7 +21,7 @@ static inline char *offstr(struct section *sec, unsigned long offset)
        char *name, *str;
        unsigned long name_off;
 
-       func = find_containing_func(sec, offset);
+       func = find_func_containing(sec, offset);
        if (func) {
                name = func->name;
                name_off = offset - func->offset;