Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Kamalesh Babulal and committed by
Jiri Kosina
b766922e 6960d582

-7
-7
arch/powerpc/include/asm/livepatch.h
··· 28 28 return 0; 29 29 } 30 30 31 - static inline int klp_write_module_reloc(struct module *mod, unsigned long 32 - type, unsigned long loc, unsigned long value) 33 - { 34 - /* This requires infrastructure changes; we need the loadinfos. */ 35 - return -ENOSYS; 36 - } 37 - 38 31 static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip) 39 32 { 40 33 regs->nip = ip;