parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header
[pandora-kernel.git] / arch / parisc / include / asm / bitsperlong.h
1 #ifndef __ASM_PARISC_BITSPERLONG_H
2 #define __ASM_PARISC_BITSPERLONG_H
3
4 /*
5  * using CONFIG_* outside of __KERNEL__ is wrong,
6  * __LP64__ was also removed from headers, so what
7  * is the right approach on parisc?
8  *      -arnd
9  */
10 #if (defined(__KERNEL__) && defined(CONFIG_64BIT)) || defined (__LP64__)
11 #define __BITS_PER_LONG 64
12 #else
13 #define __BITS_PER_LONG 32
14 #endif
15
16 #include <asm-generic/bitsperlong.h>
17
18 #endif /* __ASM_PARISC_BITSPERLONG_H */