2.5.70-mm3: 64bit kdev_t architecture updates
PATCH 1/1 2.5.70-mm3: 64bit kdev_t architecture updates
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.
include/asm-alpha/posix_types.h +3 -1
@@ -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 ;
include/asm-arm/posix_types.h +3 -1
@@ -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 ;
include/asm-cris/posix_types.h +2 -1
@@ -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 ;
include/asm-h8300/posix_types.h +3 -1
@@ -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 ;
include/asm-ia64/posix_types.h +3 -1
@@ -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 <[email protected]> */ -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 ;
include/asm-m68k/posix_types.h +3 -1
@@ -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 ;
include/asm-mips/posix_types.h +3 -1
@@ -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 ;
include/asm-mips64/posix_types.h +3 -1
@@ -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 ;
include/asm-parisc/posix_types.h +3 -1
@@ -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 ;
include/asm-ppc/posix_types.h +3 -1
@@ -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 ;
include/asm-ppc64/posix_types.h +3 -1
@@ -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 ;
include/asm-s390/posix_types.h +4 -2
@@ -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 ;
include/asm-sh/posix_types.h +3 -1
@@ -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 ;
include/asm-sparc/posix_types.h +3 -1
@@ -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 ;
include/asm-sparc64/posix_types.h +3 -1
@@ -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 ;
include/asm-v850/posix_types.h +3 -1
@@ -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 ;
include/asm-x86_64/posix_types.h +3 -1
@@ -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 ;