[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061221174417.5e7478db@uberlaptop.development.ltl>
Date: Thu, 21 Dec 2006 17:44:17 +0000
From: Roy Marples <roy@...ples.name>
To: linux-kernel@...r.kernel.org
Cc: vapier@...too.org
Subject: [PATCH 2.6.19] asm/types.h: Allow C99 to use __u64
C99 standard allows the use of the long long data type, both signed and
unsigned. We should allow this to be used if defined.
Signed-off-by: Roy Marples <uberlord@...too.org>
--- a/include/asm-arm/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-arm/types.h 2006-12-21 17:21:43.000000000 +0000
@@ -19,7 +19,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-arm26/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-arm26/types.h 2006-12-21 17:22:06.000000000 +0000
@@ -19,7 +19,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-avr32/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-avr32/types.h 2006-12-21 17:22:28.000000000 +0000
@@ -25,7 +25,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-cris/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-cris/types.h 2006-12-21 17:23:00.000000000 +0000
@@ -19,7 +19,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-frv/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-frv/types.h 2006-12-21 17:23:23.000000000 +0000
@@ -30,7 +30,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-h8300/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-h8300/types.h 2006-12-21 17:23:57.000000000 +0000
@@ -27,7 +27,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
diff -ur a/include/asm-i386/types.h b/include/asm-i386/types.h
--- a/include/asm-i386/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-i386/types.h 2006-12-21 17:20:37.000000000 +0000
@@ -19,7 +19,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-m68k/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-m68k/types.h 2006-12-21 17:24:23.000000000 +0000
@@ -27,7 +27,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-mips/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-mips/types.h 2006-12-21 17:24:56.000000000 +0000
@@ -34,7 +34,7 @@
#else
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-parisc/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-parisc/types.h 2006-12-21 17:25:20.000000000 +0000
@@ -19,7 +19,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-powerpc/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-powerpc/types.h 2006-12-21 17:25:44.000000000 +0000
@@ -40,7 +40,7 @@
typedef __signed__ long __s64;
typedef unsigned long __u64;
#else
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-s390/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-s390/types.h 2006-12-21 17:26:34.000000000 +0000
@@ -28,7 +28,7 @@
typedef unsigned int __u32;
#ifndef __s390x__
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-sh/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-sh/types.h 2006-12-21 17:26:57.000000000 +0000
@@ -19,7 +19,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-sh64/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-sh64/types.h 2006-12-21 17:27:20.000000000 +0000
@@ -30,7 +30,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-v850/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-v850/types.h 2006-12-21 17:28:16.000000000 +0000
@@ -27,7 +27,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
--- a/include/asm-xtensa/types.h 2006-11-29 21:57:37.000000000 +0000
+++ b/include/asm-xtensa/types.h 2006-12-21 17:28:50.000000000 +0000
@@ -29,7 +29,7 @@
typedef __signed__ int __s32;
typedef unsigned int __u32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || defined(__USE_ISOC99)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists