summaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/uapi/asm/shmbuf.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/shmbuf.h
parent2fe749f50b0bec07650ef135b29b1f55bf543869 (diff)
downloadop-kernel-dev-d8f5457ab93965f0e695516ad23548954e3e9044.zip
op-kernel-dev-d8f5457ab93965f0e695516ad23548954e3e9044.tar.gz
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/shmbuf.h')
-rw-r--r--arch/parisc/include/uapi/asm/shmbuf.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/parisc/include/uapi/asm/shmbuf.h b/arch/parisc/include/uapi/asm/shmbuf.h
index f395cde..8496c38 100644
--- a/arch/parisc/include/uapi/asm/shmbuf.h
+++ b/arch/parisc/include/uapi/asm/shmbuf.h
@@ -1,6 +1,8 @@
#ifndef _PARISC_SHMBUF_H
#define _PARISC_SHMBUF_H
+#include <asm/bitsperlong.h>
+
/*
* The shmid64_ds structure for parisc architecture.
* Note extra padding because this structure is passed back and forth
@@ -13,19 +15,19 @@
struct shmid64_ds {
struct ipc64_perm shm_perm; /* operation perms */
-#ifndef CONFIG_64BIT
+#if __BITS_PER_LONG != 64
unsigned int __pad1;
#endif
__kernel_time_t shm_atime; /* last attach time */
-#ifndef CONFIG_64BIT
+#if __BITS_PER_LONG != 64
unsigned int __pad2;
#endif
__kernel_time_t shm_dtime; /* last detach time */
-#ifndef CONFIG_64BIT
+#if __BITS_PER_LONG != 64
unsigned int __pad3;
#endif
__kernel_time_t shm_ctime; /* last change time */
-#ifndef CONFIG_64BIT
+#if __BITS_PER_LONG != 64
unsigned int __pad4;
#endif
size_t shm_segsz; /* size of segment (bytes) */
OpenPOWER on IntegriCloud