Skip to content

Commit

Permalink
arm64: module: Remove unused plt_entry_is_initialized()
Browse files Browse the repository at this point in the history
Since commit f1a54ae ("arm64: module/ftrace: intialize PLT at load
time"), plt_entry_is_initialized() is unused anymore , so remove it.

Signed-off-by: Li Huafei <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
  • Loading branch information
Li Huafei authored and ctmarinas committed Sep 29, 2022
1 parent 3fb420f commit 5de2291
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/arm64/include/asm/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,4 @@ static inline bool is_forbidden_offset_for_adrp(void *place)

struct plt_entry get_plt_entry(u64 dst, void *pc);

static inline bool plt_entry_is_initialized(const struct plt_entry *e)
{
return e->adrp || e->add || e->br;
}

#endif /* __ASM_MODULE_H */

0 comments on commit 5de2291

Please sign in to comment.