Ver código fonte

MIPS: <uapi/asm/siginfo.h>: Don't reference CONFIG_* symbols.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 12 anos atrás
pai
commit
c8d5c68564
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      arch/mips/include/uapi/asm/siginfo.h

+ 2 - 2
arch/mips/include/uapi/asm/siginfo.h

@@ -25,10 +25,10 @@ struct siginfo;
 /*
 /*
  * Careful to keep union _sifields from shifting ...
  * Careful to keep union _sifields from shifting ...
  */
  */
-#ifdef CONFIG_32BIT
+#if __SIZEOF_LONG__ == 4
 #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
 #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int))
 #endif
 #endif
-#ifdef CONFIG_64BIT
+#if __SIZEOF_LONG__ == 8
 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
 #endif
 #endif