Skip to content

Commit b766922

Browse files
kamalesh-babulalJiri Kosina
authored andcommitted
powerpc/livepatch: Remove klp_write_module_reloc() stub
commit 425595a ("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>
1 parent 6960d58 commit b766922

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎arch/powerpc/include/asm/livepatch.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ static inline int klp_check_compiler_support(void)
2828
return 0;
2929
}
3030

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-
3831
static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
3932
{
4033
regs->nip = ip;

0 commit comments

Comments
 (0)