MIPS: Remove unused PIC macros
authorPaul Burton <paul.burton@mips.com>
Mon, 15 Oct 2018 18:33:19 +0000 (18:33 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 16 Oct 2018 06:11:12 +0000 (23:11 -0700)
asm/asm.h contains CPRESTORE, CPADD & CPLOAD macros that are intended
for use with position independent code, but are not used anywhere in the
kernel - along with a comment to that effect. Remove the dead code.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20903/
Cc: linux-mips@linux-mips.org
arch/mips/include/asm/asm.h

index 4e4f605..0371177 100644 (file)
 #define CAT(str1, str2) __CAT(str1, str2)
 #endif
 
-/*
- * PIC specific declarations
- * Not used for the kernel but here seems to be the right place.
- */
-#ifdef __PIC__
-#define CPRESTORE(register)                            \
-               .cprestore register
-#define CPADD(register)                                        \
-               .cpadd  register
-#define CPLOAD(register)                               \
-               .cpload register
-#else
-#define CPRESTORE(register)
-#define CPADD(register)
-#define CPLOAD(register)
-#endif
-
 /*
  * LEAF - declare leaf routine
  */