summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/module_64.c
diff options
context:
space:
mode:
authorJosh Poimboeuf2018-05-25 05:48:34 +0200
committerMichael Ellerman2018-05-28 10:46:34 +0200
commit8ce621e1d946b1d1d7717337ab8dc3cbc4fd996f (patch)
tree0b1351be4cf0ea7ab6de0f0f8905871d3a2702b1 /arch/powerpc/kernel/module_64.c
parentpowerpc/powernv/cpuidle: Init all present cpus for deep states (diff)
downloadkernel-qcow2-linux-8ce621e1d946b1d1d7717337ab8dc3cbc4fd996f.tar.gz
kernel-qcow2-linux-8ce621e1d946b1d1d7717337ab8dc3cbc4fd996f.tar.xz
kernel-qcow2-linux-8ce621e1d946b1d1d7717337ab8dc3cbc4fd996f.zip
powerpc/modules: remove unused mod_arch_specific.toc field
The toc field in the mod_arch_specific struct isn't actually used anywhere, so remove it. Also the ftrace-specific fields are now common between 32-bit and 64-bit, so simplify the struct definition a bit by moving them out of the __powerpc64__ #ifdef. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/module_64.c')
-rw-r--r--arch/powerpc/kernel/module_64.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/module_64.c b/arch/powerpc/kernel/module_64.c
index f7667e2ebfcb..1b7419579820 100644
--- a/arch/powerpc/kernel/module_64.c
+++ b/arch/powerpc/kernel/module_64.c
@@ -823,7 +823,6 @@ static unsigned long create_ftrace_stub(const Elf64_Shdr *sechdrs,
int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs)
{
- mod->arch.toc = my_r2(sechdrs, mod);
mod->arch.tramp = create_ftrace_stub(sechdrs, mod,
(unsigned long)ftrace_caller);
#ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS