* [PATCH] 2.5.70-mm3: 64bit kdev_t architecture updates
@ 2003-06-01 10:28 Andres Salomon
0 siblings, 0 replies; only message in thread
From: Andres Salomon @ 2003-06-01 10:28 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, Andries.Brouwer
[-- Attachment #1: Type: text/plain, Size: 291 bytes --]
Since only i386's __kernel_dev_t is updated for a 64bit kdev_t, this patch
updates the rest of the archs. Again, it includes asm/types.h to handle
the dirty work of deciding what type each arch needs for u64. I'm testing
this out w/ an ultrasparc1 box; so far, no major (compile) issues.
[-- Attachment #2: 64-bit-kdev_t-arch-updates.patch --]
[-- Type: application/octet-stream, Size: 11244 bytes --]
--- a/include/asm-alpha/posix_types.h 2003-05-31 19:59:13.000000000 -0400
+++ b/include/asm-alpha/posix_types.h 2003-06-01 05:14:25.000000000 -0400
@@ -1,13 +1,15 @@
#ifndef _ALPHA_POSIX_TYPES_H
#define _ALPHA_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned int __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned int __kernel_ino_t;
typedef unsigned int __kernel_mode_t;
typedef unsigned int __kernel_nlink_t;
--- a/include/asm-arm/posix_types.h 2003-05-31 19:59:13.000000000 -0400
+++ b/include/asm-arm/posix_types.h 2003-06-01 05:15:00.000000000 -0400
@@ -13,13 +13,15 @@
#ifndef __ARCH_ARM_POSIX_TYPES_H
#define __ARCH_ARM_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned short __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned short __kernel_mode_t;
typedef unsigned short __kernel_nlink_t;
--- a/include/asm-cris/posix_types.h 2003-05-31 19:59:13.000000000 -0400
+++ b/include/asm-cris/posix_types.h 2003-06-01 05:15:19.000000000 -0400
@@ -7,6 +7,7 @@
#define __ARCH_CRIS_POSIX_TYPES_H
#include <asm/bitops.h>
+#include <asm/types.h>
/*
* This file is generally used by user-level software, so you need to
@@ -14,7 +15,7 @@
* assume GCC is being used.
*/
-typedef unsigned short __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned short __kernel_mode_t;
typedef unsigned short __kernel_nlink_t;
--- a/include/asm-h8300/posix_types.h 2003-05-31 19:59:13.000000000 -0400
+++ b/include/asm-h8300/posix_types.h 2003-06-01 05:16:02.000000000 -0400
@@ -1,13 +1,15 @@
#ifndef __ARCH_H8300_POSIX_TYPES_H
#define __ARCH_H8300_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned short __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned short __kernel_mode_t;
typedef unsigned short __kernel_nlink_t;
--- a/include/asm-ia64/posix_types.h 2003-05-31 19:59:13.000000000 -0400
+++ b/include/asm-ia64/posix_types.h 2003-06-01 05:16:23.000000000 -0400
@@ -1,6 +1,8 @@
#ifndef _ASM_IA64_POSIX_TYPES_H
#define _ASM_IA64_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
@@ -10,7 +12,7 @@
* David Mosberger-Tang <davidm@hpl.hp.com>
*/
-typedef unsigned int __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned int __kernel_ino_t;
typedef unsigned int __kernel_mode_t;
typedef unsigned int __kernel_nlink_t;
--- a/include/asm-m68k/posix_types.h 2003-05-31 19:59:14.000000000 -0400
+++ b/include/asm-m68k/posix_types.h 2003-06-01 05:17:02.000000000 -0400
@@ -1,13 +1,15 @@
#ifndef __ARCH_M68K_POSIX_TYPES_H
#define __ARCH_M68K_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned short __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned short __kernel_mode_t;
typedef unsigned short __kernel_nlink_t;
--- a/include/asm-mips/posix_types.h 2003-05-31 19:59:17.000000000 -0400
+++ b/include/asm-mips/posix_types.h 2003-06-01 05:17:18.000000000 -0400
@@ -9,13 +9,15 @@
#ifndef _ASM_POSIX_TYPES_H
#define _ASM_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned int __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned int __kernel_mode_t;
typedef int __kernel_nlink_t;
--- a/include/asm-mips64/posix_types.h 2003-05-31 19:59:17.000000000 -0400
+++ b/include/asm-mips64/posix_types.h 2003-06-01 05:17:31.000000000 -0400
@@ -9,13 +9,15 @@
#ifndef _ASM_POSIX_TYPES_H
#define _ASM_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned int __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned int __kernel_ino_t;
typedef unsigned int __kernel_mode_t;
typedef unsigned int __kernel_nlink_t;
--- a/include/asm-parisc/posix_types.h 2003-05-31 19:59:18.000000000 -0400
+++ b/include/asm-parisc/posix_types.h 2003-06-01 05:17:42.000000000 -0400
@@ -1,12 +1,14 @@
#ifndef __ARCH_PARISC_POSIX_TYPES_H
#define __ARCH_PARISC_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned int __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned short __kernel_mode_t;
typedef unsigned short __kernel_nlink_t;
--- a/include/asm-ppc/posix_types.h 2003-05-31 19:59:18.000000000 -0400
+++ b/include/asm-ppc/posix_types.h 2003-06-01 05:17:52.000000000 -0400
@@ -1,13 +1,15 @@
#ifndef _PPC_POSIX_TYPES_H
#define _PPC_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned int __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned int __kernel_mode_t;
typedef unsigned short __kernel_nlink_t;
--- a/include/asm-ppc64/posix_types.h 2003-05-31 19:59:18.000000000 -0400
+++ b/include/asm-ppc64/posix_types.h 2003-06-01 05:18:02.000000000 -0400
@@ -1,6 +1,8 @@
#ifndef _PPC64_POSIX_TYPES_H
#define _PPC64_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
@@ -12,7 +14,7 @@
* 2 of the License, or (at your option) any later version.
*/
-typedef unsigned long __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned long __kernel_nlink_t;
typedef unsigned int __kernel_mode_t;
--- a/include/asm-s390/posix_types.h 2003-05-31 19:59:18.000000000 -0400
+++ b/include/asm-s390/posix_types.h 2003-06-01 05:19:03.000000000 -0400
@@ -9,6 +9,8 @@
#ifndef __ARCH_S390_POSIX_TYPES_H
#define __ARCH_S390_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
@@ -34,7 +36,7 @@
#ifndef __s390x__
-typedef unsigned short __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned short __kernel_mode_t;
typedef unsigned short __kernel_nlink_t;
@@ -51,7 +53,7 @@
#else /* __s390x__ */
-typedef unsigned int __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned int __kernel_ino_t;
typedef unsigned int __kernel_mode_t;
typedef unsigned int __kernel_nlink_t;
--- a/include/asm-sh/posix_types.h 2003-05-31 19:59:18.000000000 -0400
+++ b/include/asm-sh/posix_types.h 2003-06-01 05:19:18.000000000 -0400
@@ -1,13 +1,15 @@
#ifndef __ASM_SH_POSIX_TYPES_H
#define __ASM_SH_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned short __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned short __kernel_mode_t;
typedef unsigned short __kernel_nlink_t;
--- a/include/asm-sparc/posix_types.h 2003-05-31 19:59:18.000000000 -0400
+++ b/include/asm-sparc/posix_types.h 2003-06-01 05:19:46.000000000 -0400
@@ -1,6 +1,8 @@
#ifndef __ARCH_SPARC_POSIX_TYPES_H
#define __ARCH_SPARC_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
@@ -17,7 +19,7 @@
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;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned short __kernel_mode_t;
typedef unsigned short __kernel_umode_t;
--- a/include/asm-sparc64/posix_types.h 2003-05-31 19:59:18.000000000 -0400
+++ b/include/asm-sparc64/posix_types.h 2003-06-01 05:20:05.000000000 -0400
@@ -1,6 +1,8 @@
#ifndef __ARCH_SPARC64_POSIX_TYPES_H
#define __ARCH_SPARC64_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
@@ -16,7 +18,7 @@
typedef int __kernel_ipc_pid_t;
typedef unsigned int __kernel_uid_t;
typedef unsigned int __kernel_gid_t;
-typedef unsigned int __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned int __kernel_mode_t;
typedef unsigned short __kernel_umode_t;
--- a/include/asm-v850/posix_types.h 2003-05-31 19:59:19.000000000 -0400
+++ b/include/asm-v850/posix_types.h 2003-06-01 05:20:25.000000000 -0400
@@ -14,7 +14,9 @@
#ifndef __V850_POSIX_TYPES_H__
#define __V850_POSIX_TYPES_H__
-typedef unsigned int __kernel_dev_t;
+#include <asm/types.h>
+
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned long long __kernel_ino64_t;
typedef unsigned int __kernel_mode_t;
--- a/include/asm-x86_64/posix_types.h 2003-05-31 19:59:19.000000000 -0400
+++ b/include/asm-x86_64/posix_types.h 2003-06-01 05:20:50.000000000 -0400
@@ -1,13 +1,15 @@
#ifndef _ASM_X86_64_POSIX_TYPES_H
#define _ASM_X86_64_POSIX_TYPES_H
+#include <asm/types.h>
+
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
-typedef unsigned long __kernel_dev_t;
+typedef __u64 __kernel_dev_t;
typedef unsigned long __kernel_ino_t;
typedef unsigned int __kernel_mode_t;
typedef unsigned long __kernel_nlink_t;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-01 10:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-01 10:28 [PATCH] 2.5.70-mm3: 64bit kdev_t architecture updates Andres Salomon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®