arm64: module: Make plt_equals_entry() static
authorLi Huafei <lihuafei1@huawei.com>
Thu, 29 Sep 2022 09:41:32 +0000 (17:41 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 29 Sep 2022 16:47:18 +0000 (17:47 +0100)
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>
arch/arm64/include/asm/module.h
arch/arm64/kernel/module-plts.c

index 4e7fa2623896b008afb775c2cd4d41f7a72491c5..28514b989a0b65cb596319a934d0ad6328a6e92e 100644 (file)
@@ -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)
 {
index a3d0494f25a91de87c8e15a04fe404d516e6ef2e..5a0a8f552a6106e66c931e45eaf1956a1f82636c 100644 (file)
@@ -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;