Commit 3fb420f5 authored by Li Huafei's avatar Li Huafei Committed by Catalin Marinas
Browse files

arm64: module: Make plt_equals_entry() static



Since commit 4e69ecf4 ("arm64/module: ftrace: deal with place
relative nature of PLTs"), plt_equals_entry() is not used outside of
module-plts.c, so make it static.

Signed-off-by: default avatarLi Huafei <lihuafei1@huawei.com>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220929094134.99512-2-lihuafei1@huawei.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent b90cb105
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -58,7 +58,6 @@ static inline bool is_forbidden_offset_for_adrp(void *place)
}

struct plt_entry get_plt_entry(u64 dst, void *pc);
bool plt_entries_equal(const struct plt_entry *a, const struct plt_entry *b);

static inline bool plt_entry_is_initialized(const struct plt_entry *e)
{
+2 −1
Original line number Diff line number Diff line
@@ -37,7 +37,8 @@ struct plt_entry get_plt_entry(u64 dst, void *pc)
	return plt;
}

bool plt_entries_equal(const struct plt_entry *a, const struct plt_entry *b)
static bool plt_entries_equal(const struct plt_entry *a,
			      const struct plt_entry *b)
{
	u64 p, q;