Switch __kernel_dev_t to `unsigned long long' for the non-ia32 32-bit
architectures.

Switch __kernel_dev_t to `unsigned long' for the 64-bit architectures.

ppc64 was always using unsigned long.


 25-akpm/include/asm-alpha/posix_types.h   |    4 +++-
 25-akpm/include/asm-arm/posix_types.h     |    4 +++-
 25-akpm/include/asm-arm26/posix_types.h   |    4 +++-
 25-akpm/include/asm-cris/posix_types.h    |    4 +++-
 25-akpm/include/asm-h8300/posix_types.h   |    4 +++-
 25-akpm/include/asm-ia64/posix_types.h    |    4 +++-
 25-akpm/include/asm-m68k/posix_types.h    |    4 +++-
 25-akpm/include/asm-mips/posix_types.h    |    4 +++-
 25-akpm/include/asm-mips64/posix_types.h  |    4 +++-
 25-akpm/include/asm-parisc/posix_types.h  |    4 +++-
 25-akpm/include/asm-ppc/posix_types.h     |    4 +++-
 25-akpm/include/asm-s390/posix_types.h    |    8 ++++++--
 25-akpm/include/asm-sh/posix_types.h      |    4 +++-
 25-akpm/include/asm-sparc/posix_types.h   |    4 +++-
 25-akpm/include/asm-sparc64/posix_types.h |    4 +++-
 25-akpm/include/asm-v850/posix_types.h    |    4 +++-
 25-akpm/include/asm-x86_64/posix_types.h  |    2 ++
 17 files changed, 53 insertions(+), 17 deletions(-)

diff -puN include/asm-alpha/posix_types.h~64-bit-dev_t-other-archs include/asm-alpha/posix_types.h
--- 25/include/asm-alpha/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-alpha/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -7,7 +7,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned int	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned int	__kernel_ino_t;
 typedef unsigned int	__kernel_mode_t;
 typedef unsigned int	__kernel_nlink_t;
diff -puN include/asm-arm26/posix_types.h~64-bit-dev_t-other-archs include/asm-arm26/posix_types.h
--- 25/include/asm-arm26/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-arm26/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -19,7 +19,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned short		__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long		__kernel_ino_t;
 typedef unsigned short		__kernel_mode_t;
 typedef unsigned short		__kernel_nlink_t;
diff -puN include/asm-arm/posix_types.h~64-bit-dev_t-other-archs include/asm-arm/posix_types.h
--- 25/include/asm-arm/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-arm/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -19,7 +19,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned short		__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long		__kernel_ino_t;
 typedef unsigned short		__kernel_mode_t;
 typedef unsigned short		__kernel_nlink_t;
diff -puN include/asm-cris/posix_types.h~64-bit-dev_t-other-archs include/asm-cris/posix_types.h
--- 25/include/asm-cris/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-cris/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -14,7 +14,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned short	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned short	__kernel_mode_t;
 typedef unsigned short	__kernel_nlink_t;
diff -puN include/asm-h8300/posix_types.h~64-bit-dev_t-other-archs include/asm-h8300/posix_types.h
--- 25/include/asm-h8300/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-h8300/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -7,7 +7,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned short	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned short	__kernel_mode_t;
 typedef unsigned short	__kernel_nlink_t;
diff -puN include/asm-ia64/posix_types.h~64-bit-dev_t-other-archs include/asm-ia64/posix_types.h
--- 25/include/asm-ia64/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-ia64/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -10,7 +10,9 @@
  *	David Mosberger-Tang <davidm@hpl.hp.com>
  */
 
-typedef unsigned int	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long	__kernel_dev_t;
+#endif
 typedef unsigned int	__kernel_ino_t;
 typedef unsigned int	__kernel_mode_t;
 typedef unsigned int	__kernel_nlink_t;
diff -puN include/asm-m68k/posix_types.h~64-bit-dev_t-other-archs include/asm-m68k/posix_types.h
--- 25/include/asm-m68k/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-m68k/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -7,7 +7,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned short	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned short	__kernel_mode_t;
 typedef unsigned short	__kernel_nlink_t;
diff -puN include/asm-mips64/posix_types.h~64-bit-dev_t-other-archs include/asm-mips64/posix_types.h
--- 25/include/asm-mips64/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-mips64/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -15,7 +15,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned int	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned int	__kernel_mode_t;
 typedef unsigned int	__kernel_nlink_t;
diff -puN include/asm-mips/posix_types.h~64-bit-dev_t-other-archs include/asm-mips/posix_types.h
--- 25/include/asm-mips/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-mips/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -14,7 +14,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned int	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned int	__kernel_mode_t;
 typedef unsigned long	__kernel_nlink_t;
diff -puN include/asm-parisc/posix_types.h~64-bit-dev_t-other-archs include/asm-parisc/posix_types.h
--- 25/include/asm-parisc/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-parisc/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -6,7 +6,9 @@
  * be a little careful about namespace pollution etc.  Also, we cannot
  * assume GCC is being used.
  */
-typedef unsigned int		__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long		__kernel_ino_t;
 typedef unsigned short		__kernel_mode_t;
 typedef unsigned short		__kernel_nlink_t;
diff -puN include/asm-ppc/posix_types.h~64-bit-dev_t-other-archs include/asm-ppc/posix_types.h
--- 25/include/asm-ppc/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-ppc/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -7,7 +7,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned int	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned int	__kernel_mode_t;
 typedef unsigned short	__kernel_nlink_t;
diff -puN include/asm-s390/posix_types.h~64-bit-dev_t-other-archs include/asm-s390/posix_types.h
--- 25/include/asm-s390/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-s390/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -34,7 +34,9 @@ typedef long long       __kernel_loff_t;
 
 #ifndef __s390x__
 
-typedef unsigned short  __kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long   __kernel_ino_t;
 typedef unsigned short  __kernel_mode_t;
 typedef unsigned short  __kernel_nlink_t;
@@ -51,7 +53,9 @@ typedef unsigned short	__kernel_old_dev_
 
 #else /* __s390x__ */
 
-typedef unsigned int    __kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned int    __kernel_ino_t;
 typedef unsigned int    __kernel_mode_t;
 typedef unsigned int    __kernel_nlink_t;
diff -puN include/asm-sh/posix_types.h~64-bit-dev_t-other-archs include/asm-sh/posix_types.h
--- 25/include/asm-sh/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-sh/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -7,7 +7,9 @@
  * assume GCC is being used.
  */
 
-typedef unsigned short	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned short	__kernel_mode_t;
 typedef unsigned short	__kernel_nlink_t;
diff -puN include/asm-sparc64/posix_types.h~64-bit-dev_t-other-archs include/asm-sparc64/posix_types.h
--- 25/include/asm-sparc64/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-sparc64/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -16,7 +16,9 @@ typedef int                    __kernel_
 typedef int                    __kernel_ipc_pid_t;
 typedef unsigned int           __kernel_uid_t;
 typedef unsigned int           __kernel_gid_t;
-typedef unsigned int           __kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long	__kernel_dev_t;
+#endif
 typedef unsigned long          __kernel_ino_t;
 typedef unsigned int           __kernel_mode_t;
 typedef unsigned short         __kernel_umode_t;
diff -puN include/asm-sparc/posix_types.h~64-bit-dev_t-other-archs include/asm-sparc/posix_types.h
--- 25/include/asm-sparc/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-sparc/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -17,7 +17,9 @@ typedef int                    __kernel_
 typedef unsigned short         __kernel_ipc_pid_t;
 typedef unsigned short         __kernel_uid_t;
 typedef unsigned short         __kernel_gid_t;
-typedef unsigned short         __kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long          __kernel_ino_t;
 typedef unsigned short         __kernel_mode_t;
 typedef unsigned short         __kernel_umode_t;
diff -puN include/asm-v850/posix_types.h~64-bit-dev_t-other-archs include/asm-v850/posix_types.h
--- 25/include/asm-v850/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:47 2003
+++ 25-akpm/include/asm-v850/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -14,7 +14,9 @@
 #ifndef __V850_POSIX_TYPES_H__
 #define __V850_POSIX_TYPES_H__
 
-typedef unsigned int	__kernel_dev_t;
+#ifdef __GNUC__
+typedef unsigned long long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned long long __kernel_ino64_t;
 typedef unsigned int	__kernel_mode_t;
diff -puN include/asm-x86_64/posix_types.h~64-bit-dev_t-other-archs include/asm-x86_64/posix_types.h
--- 25/include/asm-x86_64/posix_types.h~64-bit-dev_t-other-archs	Wed Jul 16 10:10:48 2003
+++ 25-akpm/include/asm-x86_64/posix_types.h	Wed Jul 16 10:10:48 2003
@@ -7,7 +7,9 @@
  * assume GCC is being used.
  */
 
+#ifdef __GNUC__
 typedef unsigned long	__kernel_dev_t;
+#endif
 typedef unsigned long	__kernel_ino_t;
 typedef unsigned int	__kernel_mode_t;
 typedef unsigned long	__kernel_nlink_t;

_