Skip to contentSkip to conversation

MIPS: Drop unused PTR_COUNT_SHIFT from u-boot.lds

PATCH New Paul Burton 2 participants 2 messages Sep 15, 2017 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Drop unused PTR_COUNT_SHIFT from u-boot.lds

The u-boot.lds linker script for MIPS defines a PTR_COUNT_SHIFT macro to 2 or 3 for 32 bit or 64 bit builds respectively. This macro is never actually used though, so remove the dead code.

Cc Daniel Schwierzeck <[email protected]>

---

 arch/mips/cpu/u-boot.lds | 6 ------
 1 file changed, 6 deletions(-)
arch/mips/cpu/u-boot.lds +0 -6
index bd5536f013..fc943af923 100644
@@ -5,12 +5,6 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
-#if defined(CONFIG_64BIT)
-#define PTR_COUNT_SHIFT	3
-#else
-#define PTR_COUNT_SHIFT	2
-#endif
-
 OUTPUT_ARCH(mips)
 ENTRY(_start)
 SECTIONS
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 MIPS: Drop unused PTR_COUNT_SHIFT from u-boot.lds

Am 15.09.2017 um 20:35 schrieb Paul Burton:

Quoted 10 lines

The u-boot.lds linker script for MIPS defines a PTR_COUNT_SHIFT macro to 2 or 3 for 32 bit or 64 bit builds respectively. This macro is never actually used though, so remove the dead code.

Cc Daniel Schwierzeck <[email protected]>

---

 arch/mips/cpu/u-boot.lds | 6 ------
 1 file changed, 6 deletions(-)

applied to u-boot-mips, thanks

Signature · 9 lines
- Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170915/0dfc9dc5/attachment.sig>