aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/uapi/asm/bitsperlong.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2014-11-10 22:04:47 +0100
committerHelge Deller <deller@gmx.de>2014-11-10 22:25:29 +0100
commitd8f5457ab93965f0e695516ad23548954e3e9044 (patch)
tree08bc851d3daaf717b3ed603a6dff55d15e9ed5aa /arch/parisc/include/uapi/asm/bitsperlong.h
parentparisc: Use compat layer for msgctl, shmat, shmctl and semtimedop syscalls (diff)
downloadlinux-dev-d8f5457ab93965f0e695516ad23548954e3e9044.tar.xz
linux-dev-d8f5457ab93965f0e695516ad23548954e3e9044.zip
parisc: Avoid using CONFIG_64BIT in userspace exported headers
The gcc compiler provide the predefined __LP64__ macro. Use that instead. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/uapi/asm/bitsperlong.h')
-rw-r--r--arch/parisc/include/uapi/asm/bitsperlong.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/parisc/include/uapi/asm/bitsperlong.h b/arch/parisc/include/uapi/asm/bitsperlong.h
index 75196b415d3f..e0a23c7bdd43 100644
--- a/arch/parisc/include/uapi/asm/bitsperlong.h
+++ b/arch/parisc/include/uapi/asm/bitsperlong.h
@@ -1,13 +1,7 @@
#ifndef __ASM_PARISC_BITSPERLONG_H
#define __ASM_PARISC_BITSPERLONG_H
-/*
- * using CONFIG_* outside of __KERNEL__ is wrong,
- * __LP64__ was also removed from headers, so what
- * is the right approach on parisc?
- * -arnd
- */
-#if (defined(__KERNEL__) && defined(CONFIG_64BIT)) || defined (__LP64__)
+#if defined(__LP64__)
#define __BITS_PER_LONG 64
#define SHIFT_PER_LONG 6
#else