Skip to contentSkip to conversation

sparc: merge posix_types_64.h into posix_types.h

PATCH New Adrian Bunk 1 participant 1 message Jun 12, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: merge posix_types_64.h into posix_types.h

---

 include/asm-sparc/posix_types.h    |   20 +++++++++++++++++++-
 include/asm-sparc/posix_types_64.h |   22 ----------------------
 2 files changed, 19 insertions(+), 23 deletions(-)

0d1bc28badda9504a3e07481bc1f7cfe847d0734 diff --git a/include/asm-sparc/posix_types.h b/include/asm-sparc/posix_types.h index 4636c5d..2aca832 100644

include/asm-sparc/posix_types.h +19 -1
@@ -104,7 +104,25 @@ static inline void __FD_ZERO(__kernel_fd_set *p)
 
 
 #if defined(__sparc__) && defined(__arch64__)
-#include <asm-sparc/posix_types_64.h>
+
+typedef unsigned long          __kernel_size_t;
+typedef long                   __kernel_ssize_t;
+typedef int                    __kernel_ipc_pid_t;
+typedef unsigned int           __kernel_uid_t;
+typedef unsigned int           __kernel_gid_t;
+typedef unsigned int           __kernel_mode_t;
+typedef unsigned short         __kernel_umode_t;
+typedef unsigned int           __kernel_nlink_t;
+typedef int                    __kernel_daddr_t;
+
+typedef __kernel_uid_t	       __kernel_uid32_t;
+typedef __kernel_gid_t	       __kernel_gid32_t;
+
+typedef unsigned int	       __kernel_old_dev_t;
+
+/* Note this piece of asymmetry from the v9 ABI.  */
+typedef int		       __kernel_suseconds_t;
+
 #else
 
 typedef unsigned int           __kernel_size_t;
include/asm-sparc/posix_types_64.h deleted +0 -22
deleted file mode 100644
index 5b51039..0000000
@@ -1,22 +0,0 @@
-#ifndef __ARCH_SPARC64_POSIX_TYPES_H
-#define __ARCH_SPARC64_POSIX_TYPES_H
-
-typedef unsigned long          __kernel_size_t;
-typedef long                   __kernel_ssize_t;
-typedef int                    __kernel_ipc_pid_t;
-typedef unsigned int           __kernel_uid_t;
-typedef unsigned int           __kernel_gid_t;
-typedef unsigned int           __kernel_mode_t;
-typedef unsigned short         __kernel_umode_t;
-typedef unsigned int           __kernel_nlink_t;
-typedef int                    __kernel_daddr_t;
-
-typedef __kernel_uid_t	       __kernel_uid32_t;
-typedef __kernel_gid_t	       __kernel_gid32_t;
-
-typedef unsigned int	       __kernel_old_dev_t;
-
-/* Note this piece of asymmetry from the v9 ABI.  */
-typedef int		       __kernel_suseconds_t;
-
-#endif /* !(__ARCH_SPARC64_POSIX_TYPES_H) */