]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/livepatch: Remove klp_write_module_reloc() stub
authorKamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Fri, 16 Dec 2016 06:14:24 +0000 (11:44 +0530)
committerJiri Kosina <jkosina@suse.cz>
Mon, 19 Dec 2016 10:15:25 +0000 (11:15 +0100)
commit 425595a7fc20 ("livepatch: reuse module loader code
to write relocations") offloads livepatch module relocation
write to arch specific module loader code.

Remove unused klp_write_module_reloc() function stub.

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
arch/powerpc/include/asm/livepatch.h

index a402f7f948965f1f28d4c3f2385001c1ecdef2b6..47a03b9b528b46672ece81b641ebecc13247c817 100644 (file)
@@ -28,13 +28,6 @@ static inline int klp_check_compiler_support(void)
        return 0;
 }
 
-static inline int klp_write_module_reloc(struct module *mod, unsigned long
-               type, unsigned long loc, unsigned long value)
-{
-       /* This requires infrastructure changes; we need the loadinfos. */
-       return -ENOSYS;
-}
-
 static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
 {
        regs->nip = ip;