From: Kamalesh Babulal Date: Fri, 16 Dec 2016 06:14:24 +0000 (+0530) Subject: powerpc/livepatch: Remove klp_write_module_reloc() stub X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b766922e65356df38a57b09afab6c3d7bf7e024d;p=linux.git powerpc/livepatch: Remove klp_write_module_reloc() stub 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 Acked-by: Balbir Singh Reviewed-by: Petr Mladek Acked-by: Josh Poimboeuf Signed-off-by: Jiri Kosina --- diff --git a/arch/powerpc/include/asm/livepatch.h b/arch/powerpc/include/asm/livepatch.h index a402f7f948965..47a03b9b528b4 100644 --- a/arch/powerpc/include/asm/livepatch.h +++ b/arch/powerpc/include/asm/livepatch.h @@ -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;