summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel
diff options
context:
space:
mode:
authorLi Huafei <lihuafei1@huawei.com>2022-09-29 17:41:32 +0800
committerCatalin Marinas <catalin.marinas@arm.com>2022-09-29 17:47:18 +0100
commit3fb420f56cbf06b6ef8c39b886fed8f8f9aedee3 (patch)
tree9d0e207939a8b5595e56ba8e152a8137f156a2a6 /arch/arm64/kernel
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5 (diff)
downloadlinux-3fb420f56cbf06b6ef8c39b886fed8f8f9aedee3.tar.bz2
arm64: module: Make plt_equals_entry() static
Since commit 4e69ecf4da1e ("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: Li Huafei <lihuafei1@huawei.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20220929094134.99512-2-lihuafei1@huawei.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r--arch/arm64/kernel/module-plts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/kernel/module-plts.c b/arch/arm64/kernel/module-plts.c
index a3d0494f25a9..5a0a8f552a61 100644
--- a/arch/arm64/kernel/module-plts.c
+++ b/arch/arm64/kernel/module-plts.c
@@ -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;