summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorAlex Sverdlin <alexander.sverdlin@nokia.com>2021-05-05 08:56:30 +0200
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-06-07 13:56:20 +0200
commit4e271701c17dee70c6e1351c4d7d42e70405c6a9 (patch)
treea043f2d9ca053cb04c975c5dd99a094752c9126e /arch/arm/kernel
parentARM: 9076/1: boot: remove redundant piggy_data from clean-files (diff)
downloadlinux-4e271701c17dee70c6e1351c4d7d42e70405c6a9.tar.xz
linux-4e271701c17dee70c6e1351c4d7d42e70405c6a9.zip
ARM: 9077/1: PLT: Move struct plt_entries definition to header
No functional change, later it will be re-used in several files. Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/module-plts.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/kernel/module-plts.c b/arch/arm/kernel/module-plts.c
index 6e626abaefc5..d330e9ec2de3 100644
--- a/arch/arm/kernel/module-plts.c
+++ b/arch/arm/kernel/module-plts.c
@@ -12,10 +12,6 @@
#include <asm/cache.h>
#include <asm/opcodes.h>
-#define PLT_ENT_STRIDE L1_CACHE_BYTES
-#define PLT_ENT_COUNT (PLT_ENT_STRIDE / sizeof(u32))
-#define PLT_ENT_SIZE (sizeof(struct plt_entries) / PLT_ENT_COUNT)
-
#ifdef CONFIG_THUMB2_KERNEL
#define PLT_ENT_LDR __opcode_to_mem_thumb32(0xf8dff000 | \
(PLT_ENT_STRIDE - 4))
@@ -24,11 +20,6 @@
(PLT_ENT_STRIDE - 8))
#endif
-struct plt_entries {
- u32 ldr[PLT_ENT_COUNT];
- u32 lit[PLT_ENT_COUNT];
-};
-
static bool in_init(const struct module *mod, unsigned long loc)
{
return loc - (u32)mod->init_layout.base < mod->init_layout.size;