mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Andres Salomon" <dilinger@voxel.net>
To: <akpm@digeo.com>
Cc: <linux-kernel@vger.kernel.org>, <Andries.Brouwer@cwi.nl>
Subject: [PATCH] 2.5.70-mm3: 64bit kdev_t architecture updates
Date: Sun, 1 Jun 2003 06:28:29 -0400 (EDT)	[thread overview]
Message-ID: <16178.24.195.0.157.1054463309.squirrel@zero.voxel.net> (raw)

[-- 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;

                 reply	other threads:[~2003-06-01 10:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16178.24.195.0.157.1054463309.squirrel@zero.voxel.net \
    --to=dilinger@voxel.net \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®