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

powerpc/32: Get rid of sub_reloc_offset()

sub_reloc_offset() has not been used since commit
917f0af9e5a9 ("powerpc: Remove arch/ppc and include/asm-ppc") which
removed include/asm-ppc/prom.h.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Christophe Leroy and committed by
Michael Ellerman
e289086f 87a156fb

-14
-14
arch/powerpc/kernel/misc_32.S
··· 104 104 blr 105 105 106 106 /* 107 - * sub_reloc_offset(x) returns x - reloc_offset(). 108 - */ 109 - _GLOBAL(sub_reloc_offset) 110 - mflr r0 111 - bl 1f 112 - 1: mflr r5 113 - lis r4,1b@ha 114 - addi r4,r4,1b@l 115 - subf r5,r4,r5 116 - subf r3,r5,r3 117 - mtlr r0 118 - blr 119 - 120 - /* 121 107 * reloc_got2 runs through the .got2 section adding an offset 122 108 * to each entry. 123 109 */