Skip to content

Commit 53d2072

Browse files
author
Peter Zijlstra
committed
objtool: Rename find_containing_func()
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) <[email protected]> Reviewed-by: Miroslav Benes <[email protected]> Acked-by: Josh Poimboeuf <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 2a362ec commit 53d2072

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/objtool/elf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ struct symbol *find_symbol_containing(struct section *sec, unsigned long offset)
187187
return NULL;
188188
}
189189

190-
struct symbol *find_containing_func(struct section *sec, unsigned long offset)
190+
struct symbol *find_func_containing(struct section *sec, unsigned long offset)
191191
{
192192
struct rb_node *node;
193193

tools/objtool/elf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct symbol *find_symbol_containing(struct section *sec, unsigned long offset)
9191
struct rela *find_rela_by_dest(struct section *sec, unsigned long offset);
9292
struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset,
9393
unsigned int len);
94-
struct symbol *find_containing_func(struct section *sec, unsigned long offset);
94+
struct symbol *find_func_containing(struct section *sec, unsigned long offset);
9595
struct section *elf_create_section(struct elf *elf, const char *name, size_t
9696
entsize, int nr);
9797
struct section *elf_create_rela_section(struct elf *elf, struct section *base);

tools/objtool/warn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static inline char *offstr(struct section *sec, unsigned long offset)
2121
char *name, *str;
2222
unsigned long name_off;
2323

24-
func = find_containing_func(sec, offset);
24+
func = find_func_containing(sec, offset);
2525
if (func) {
2626
name = func->name;
2727
name_off = offset - func->offset;

0 commit comments

Comments
 (0)