Skip to contentSkip to conversation

powerpc32: get rid of sub_reloc_offset()

PATCH Applied Christophe Leroy 2 participants 3 messages May 23, 2016 – Jun 15, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc32: 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

---
 arch/powerpc/kernel/misc_32.S | 14 --------------
 1 file changed, 14 deletions(-)
arch/powerpc/kernel/misc_32.S +0 -14
index 285ca8c..d9c912b 100644
@@ -104,20 +104,6 @@ _GLOBAL(mulhdu)
 	blr
 
 /*
- * sub_reloc_offset(x) returns x - reloc_offset().
- */
-_GLOBAL(sub_reloc_offset)
-	mflr	r0
-	bl	1f
-1:	mflr	r5
-	lis	r4,1b@ha
-	addi	r4,r4,1b@l
-	subf	r5,r4,r5
-	subf	r3,r5,r3
-	mtlr	r0
-	blr
-
-/*
  * reloc_got2 runs through the .got2 section adding an offset
  * to each entry.
  */
Signature · 1 line
2.1.0
#1 lore raw
Quoted 8 lines · Christophe Leroy

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

---
 arch/powerpc/kernel/misc_32.S | 14 --------------
 1 file changed, 14 deletions(-)

Thanks.

For future patches can you use "powerpc/32:" as your prefix, thanks.

cheers