--- zzzz-none-000/linux-2.6.32.61/arch/mips/include/asm/types.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/arch/mips/include/asm/types.h 2011-07-20 07:23:51.000000000 +0000 @@ -31,6 +31,15 @@ * These aren't exported outside the kernel to avoid name space clashes */ #ifdef __KERNEL__ + +#if defined(BITS_PER_LONG) + #if BITS_PER_LONG != _MIPS_SZLONG + #error "BITS_PER_LONG is not the same as _MIPS_SZLONG. Configuration error..." + #endif /*--- #if BITS_PER_LONG != _MIPS_SZLONG ---*/ +#else /*--- #if defined(BITS_PER_LONG) ---*/ + #define BITS_PER_LONG _MIPS_SZLONG +#endif /*--- #else ---*/ /*--- #if defined(BITS_PER_LONG) ---*/ + #ifndef __ASSEMBLY__ #if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \