diff options
author | Olaf Hering <olh@suse.de> | 2007-10-17 02:27:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:53 -0400 |
commit | 68a9bd0cd5824073e3232b102011ec568a517646 (patch) | |
tree | f6dd6ea6f4b45194fdfb4022cf1203573362d8b6 | |
parent | ac8d35c5658377c280dc830352f66233e2f76f73 (diff) |
remove strict ansi check from __u64 in asm/types.h
Remove the __STRICT_ANSI__ check from the __u64/__s64 declaration on
32bit targets.
GCC can be made to warn about usage of long long types with ISO C90
(-ansi), but only with -pedantic. You can write this in a way that even
then it doesn't cause warnings, namely by:
#ifdef __GNUC__
__extension__ typedef __signed__ long long __s64;
__extension__ typedef unsigned long long __u64;
#endif
The __extension__ keyword in front of this switches off any pedantic
warnings for this expression.
Signed-off-by: Olaf Hering <olh@suse.de>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/asm-arm/types.h | 6 | ||||
-rw-r--r-- | include/asm-avr32/types.h | 6 | ||||
-rw-r--r-- | include/asm-blackfin/types.h | 6 | ||||
-rw-r--r-- | include/asm-cris/types.h | 6 | ||||
-rw-r--r-- | include/asm-frv/types.h | 6 | ||||
-rw-r--r-- | include/asm-h8300/types.h | 6 | ||||
-rw-r--r-- | include/asm-m32r/types.h | 6 | ||||
-rw-r--r-- | include/asm-m68k/types.h | 6 | ||||
-rw-r--r-- | include/asm-mips/types.h | 6 | ||||
-rw-r--r-- | include/asm-parisc/types.h | 6 | ||||
-rw-r--r-- | include/asm-powerpc/types.h | 6 | ||||
-rw-r--r-- | include/asm-s390/types.h | 6 | ||||
-rw-r--r-- | include/asm-sh/types.h | 6 | ||||
-rw-r--r-- | include/asm-sh64/types.h | 6 | ||||
-rw-r--r-- | include/asm-v850/types.h | 6 | ||||
-rw-r--r-- | include/asm-x86/types_32.h | 6 | ||||
-rw-r--r-- | include/asm-xtensa/types.h | 6 |
17 files changed, 51 insertions, 51 deletions
diff --git a/include/asm-arm/types.h b/include/asm-arm/types.h index 22992ee0627a..3141451a9bd6 100644 --- a/include/asm-arm/types.h +++ b/include/asm-arm/types.h | |||
@@ -19,9 +19,9 @@ typedef unsigned short __u16; | |||
19 | typedef __signed__ int __s32; | 19 | typedef __signed__ int __s32; |
20 | typedef unsigned int __u32; | 20 | typedef unsigned int __u32; |
21 | 21 | ||
22 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 22 | #if defined(__GNUC__) |
23 | typedef __signed__ long long __s64; | 23 | __extension__ typedef __signed__ long long __s64; |
24 | typedef unsigned long long __u64; | 24 | __extension__ typedef unsigned long long __u64; |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #endif /* __ASSEMBLY__ */ | 27 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-avr32/types.h b/include/asm-avr32/types.h index 2bff153a32ed..8999a3819403 100644 --- a/include/asm-avr32/types.h +++ b/include/asm-avr32/types.h | |||
@@ -25,9 +25,9 @@ typedef unsigned short __u16; | |||
25 | typedef __signed__ int __s32; | 25 | typedef __signed__ int __s32; |
26 | typedef unsigned int __u32; | 26 | typedef unsigned int __u32; |
27 | 27 | ||
28 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 28 | #if defined(__GNUC__) |
29 | typedef __signed__ long long __s64; | 29 | __extension__ typedef __signed__ long long __s64; |
30 | typedef unsigned long long __u64; | 30 | __extension__ typedef unsigned long long __u64; |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #endif /* __ASSEMBLY__ */ | 33 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-blackfin/types.h b/include/asm-blackfin/types.h index 36f8dc8c52ba..9785a6d531c6 100644 --- a/include/asm-blackfin/types.h +++ b/include/asm-blackfin/types.h | |||
@@ -27,9 +27,9 @@ typedef __signed__ int __s32; | |||
27 | typedef unsigned int __u32; | 27 | typedef unsigned int __u32; |
28 | 28 | ||
29 | /* HK0617 -- Changes to unsigned long temporarily */ | 29 | /* HK0617 -- Changes to unsigned long temporarily */ |
30 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 30 | #if defined(__GNUC__) |
31 | typedef __signed__ long long __s64; | 31 | __extension__ typedef __signed__ long long __s64; |
32 | typedef unsigned long long __u64; | 32 | __extension__ typedef unsigned long long __u64; |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #endif /* __ASSEMBLY__ */ | 35 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-cris/types.h b/include/asm-cris/types.h index 84557c9bac93..5a21c42bc6c5 100644 --- a/include/asm-cris/types.h +++ b/include/asm-cris/types.h | |||
@@ -19,9 +19,9 @@ typedef unsigned short __u16; | |||
19 | typedef __signed__ int __s32; | 19 | typedef __signed__ int __s32; |
20 | typedef unsigned int __u32; | 20 | typedef unsigned int __u32; |
21 | 21 | ||
22 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 22 | #if defined(__GNUC__) |
23 | typedef __signed__ long long __s64; | 23 | __extension__ typedef __signed__ long long __s64; |
24 | typedef unsigned long long __u64; | 24 | __extension__ typedef unsigned long long __u64; |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #endif /* __ASSEMBLY__ */ | 27 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-frv/types.h b/include/asm-frv/types.h index 1b6d1923b25b..767e5ed71c4b 100644 --- a/include/asm-frv/types.h +++ b/include/asm-frv/types.h | |||
@@ -30,9 +30,9 @@ typedef unsigned short __u16; | |||
30 | typedef __signed__ int __s32; | 30 | typedef __signed__ int __s32; |
31 | typedef unsigned int __u32; | 31 | typedef unsigned int __u32; |
32 | 32 | ||
33 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 33 | #if defined(__GNUC__) |
34 | typedef __signed__ long long __s64; | 34 | __extension__ typedef __signed__ long long __s64; |
35 | typedef unsigned long long __u64; | 35 | __extension__ typedef unsigned long long __u64; |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #endif /* __ASSEMBLY__ */ | 38 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-h8300/types.h b/include/asm-h8300/types.h index 2a8b1b2be782..56566e2a09fd 100644 --- a/include/asm-h8300/types.h +++ b/include/asm-h8300/types.h | |||
@@ -27,9 +27,9 @@ typedef unsigned short __u16; | |||
27 | typedef __signed__ int __s32; | 27 | typedef __signed__ int __s32; |
28 | typedef unsigned int __u32; | 28 | typedef unsigned int __u32; |
29 | 29 | ||
30 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 30 | #if defined(__GNUC__) |
31 | typedef __signed__ long long __s64; | 31 | __extension__ typedef __signed__ long long __s64; |
32 | typedef unsigned long long __u64; | 32 | __extension__ typedef unsigned long long __u64; |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | /* | 35 | /* |
diff --git a/include/asm-m32r/types.h b/include/asm-m32r/types.h index 27d3eb539c50..b64c16639a7b 100644 --- a/include/asm-m32r/types.h +++ b/include/asm-m32r/types.h | |||
@@ -19,9 +19,9 @@ typedef unsigned short __u16; | |||
19 | typedef __signed__ int __s32; | 19 | typedef __signed__ int __s32; |
20 | typedef unsigned int __u32; | 20 | typedef unsigned int __u32; |
21 | 21 | ||
22 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 22 | #if defined(__GNUC__) |
23 | typedef __signed__ long long __s64; | 23 | __extension__ typedef __signed__ long long __s64; |
24 | typedef unsigned long long __u64; | 24 | __extension__ typedef unsigned long long __u64; |
25 | #endif | 25 | #endif |
26 | #endif /* __ASSEMBLY__ */ | 26 | #endif /* __ASSEMBLY__ */ |
27 | 27 | ||
diff --git a/include/asm-m68k/types.h b/include/asm-m68k/types.h index b5a1febc97d4..c35c09d93b66 100644 --- a/include/asm-m68k/types.h +++ b/include/asm-m68k/types.h | |||
@@ -27,9 +27,9 @@ typedef unsigned short __u16; | |||
27 | typedef __signed__ int __s32; | 27 | typedef __signed__ int __s32; |
28 | typedef unsigned int __u32; | 28 | typedef unsigned int __u32; |
29 | 29 | ||
30 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 30 | #if defined(__GNUC__) |
31 | typedef __signed__ long long __s64; | 31 | __extension__ typedef __signed__ long long __s64; |
32 | typedef unsigned long long __u64; | 32 | __extension__ typedef unsigned long long __u64; |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #endif /* __ASSEMBLY__ */ | 35 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-mips/types.h b/include/asm-mips/types.h index 63a13c5bd832..2dd147f519d1 100644 --- a/include/asm-mips/types.h +++ b/include/asm-mips/types.h | |||
@@ -34,9 +34,9 @@ typedef unsigned long __u64; | |||
34 | 34 | ||
35 | #else | 35 | #else |
36 | 36 | ||
37 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 37 | #if defined(__GNUC__) |
38 | typedef __signed__ long long __s64; | 38 | __extension__ typedef __signed__ long long __s64; |
39 | typedef unsigned long long __u64; | 39 | __extension__ typedef unsigned long long __u64; |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #endif | 42 | #endif |
diff --git a/include/asm-parisc/types.h b/include/asm-parisc/types.h index d4aa33033d98..56c84802da59 100644 --- a/include/asm-parisc/types.h +++ b/include/asm-parisc/types.h | |||
@@ -19,9 +19,9 @@ typedef unsigned short __u16; | |||
19 | typedef __signed__ int __s32; | 19 | typedef __signed__ int __s32; |
20 | typedef unsigned int __u32; | 20 | typedef unsigned int __u32; |
21 | 21 | ||
22 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 22 | #if defined(__GNUC__) |
23 | typedef __signed__ long long __s64; | 23 | __extension__ typedef __signed__ long long __s64; |
24 | typedef unsigned long long __u64; | 24 | __extension__ typedef unsigned long long __u64; |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #endif /* __ASSEMBLY__ */ | 27 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-powerpc/types.h b/include/asm-powerpc/types.h index a584341c87e3..903fd1932436 100644 --- a/include/asm-powerpc/types.h +++ b/include/asm-powerpc/types.h | |||
@@ -40,9 +40,9 @@ typedef unsigned int __u32; | |||
40 | typedef __signed__ long __s64; | 40 | typedef __signed__ long __s64; |
41 | typedef unsigned long __u64; | 41 | typedef unsigned long __u64; |
42 | #else | 42 | #else |
43 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 43 | #if defined(__GNUC__) |
44 | typedef __signed__ long long __s64; | 44 | __extension__ typedef __signed__ long long __s64; |
45 | typedef unsigned long long __u64; | 45 | __extension__ typedef unsigned long long __u64; |
46 | #endif | 46 | #endif |
47 | #endif /* __powerpc64__ */ | 47 | #endif /* __powerpc64__ */ |
48 | 48 | ||
diff --git a/include/asm-s390/types.h b/include/asm-s390/types.h index fc5d7cf19324..2c5879ae90ca 100644 --- a/include/asm-s390/types.h +++ b/include/asm-s390/types.h | |||
@@ -28,9 +28,9 @@ typedef __signed__ int __s32; | |||
28 | typedef unsigned int __u32; | 28 | typedef unsigned int __u32; |
29 | 29 | ||
30 | #ifndef __s390x__ | 30 | #ifndef __s390x__ |
31 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 31 | #if defined(__GNUC__) |
32 | typedef __signed__ long long __s64; | 32 | __extension__ typedef __signed__ long long __s64; |
33 | typedef unsigned long long __u64; | 33 | __extension__ typedef unsigned long long __u64; |
34 | #endif | 34 | #endif |
35 | #else /* __s390x__ */ | 35 | #else /* __s390x__ */ |
36 | typedef __signed__ long __s64; | 36 | typedef __signed__ long __s64; |
diff --git a/include/asm-sh/types.h b/include/asm-sh/types.h index fd00dbb82f84..7ba69d9707ef 100644 --- a/include/asm-sh/types.h +++ b/include/asm-sh/types.h | |||
@@ -19,9 +19,9 @@ typedef unsigned short __u16; | |||
19 | typedef __signed__ int __s32; | 19 | typedef __signed__ int __s32; |
20 | typedef unsigned int __u32; | 20 | typedef unsigned int __u32; |
21 | 21 | ||
22 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 22 | #if defined(__GNUC__) |
23 | typedef __signed__ long long __s64; | 23 | __extension__ typedef __signed__ long long __s64; |
24 | typedef unsigned long long __u64; | 24 | __extension__ typedef unsigned long long __u64; |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #endif /* __ASSEMBLY__ */ | 27 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-sh64/types.h b/include/asm-sh64/types.h index 8d41db2153b5..2c7ad73b3883 100644 --- a/include/asm-sh64/types.h +++ b/include/asm-sh64/types.h | |||
@@ -30,9 +30,9 @@ typedef unsigned short __u16; | |||
30 | typedef __signed__ int __s32; | 30 | typedef __signed__ int __s32; |
31 | typedef unsigned int __u32; | 31 | typedef unsigned int __u32; |
32 | 32 | ||
33 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 33 | #if defined(__GNUC__) |
34 | typedef __signed__ long long __s64; | 34 | __extension__ typedef __signed__ long long __s64; |
35 | typedef unsigned long long __u64; | 35 | __extension__ typedef unsigned long long __u64; |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #endif /* __ASSEMBLY__ */ | 38 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-v850/types.h b/include/asm-v850/types.h index dcef57196875..284bda882112 100644 --- a/include/asm-v850/types.h +++ b/include/asm-v850/types.h | |||
@@ -27,9 +27,9 @@ typedef unsigned short __u16; | |||
27 | typedef __signed__ int __s32; | 27 | typedef __signed__ int __s32; |
28 | typedef unsigned int __u32; | 28 | typedef unsigned int __u32; |
29 | 29 | ||
30 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 30 | #if defined(__GNUC__) |
31 | typedef __signed__ long long __s64; | 31 | __extension__ typedef __signed__ long long __s64; |
32 | typedef unsigned long long __u64; | 32 | __extension__ typedef unsigned long long __u64; |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #endif /* !__ASSEMBLY__ */ | 35 | #endif /* !__ASSEMBLY__ */ |
diff --git a/include/asm-x86/types_32.h b/include/asm-x86/types_32.h index ad0a55bd782f..faca1922c4c3 100644 --- a/include/asm-x86/types_32.h +++ b/include/asm-x86/types_32.h | |||
@@ -19,9 +19,9 @@ typedef unsigned short __u16; | |||
19 | typedef __signed__ int __s32; | 19 | typedef __signed__ int __s32; |
20 | typedef unsigned int __u32; | 20 | typedef unsigned int __u32; |
21 | 21 | ||
22 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 22 | #if defined(__GNUC__) |
23 | typedef __signed__ long long __s64; | 23 | __extension__ typedef __signed__ long long __s64; |
24 | typedef unsigned long long __u64; | 24 | __extension__ typedef unsigned long long __u64; |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #endif /* __ASSEMBLY__ */ | 27 | #endif /* __ASSEMBLY__ */ |
diff --git a/include/asm-xtensa/types.h b/include/asm-xtensa/types.h index f1e84526f999..b27d841a8eb7 100644 --- a/include/asm-xtensa/types.h +++ b/include/asm-xtensa/types.h | |||
@@ -38,9 +38,9 @@ typedef unsigned short __u16; | |||
38 | typedef __signed__ int __s32; | 38 | typedef __signed__ int __s32; |
39 | typedef unsigned int __u32; | 39 | typedef unsigned int __u32; |
40 | 40 | ||
41 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) | 41 | #if defined(__GNUC__) |
42 | typedef __signed__ long long __s64; | 42 | __extension__ typedef __signed__ long long __s64; |
43 | typedef unsigned long long __u64; | 43 | __extension__ typedef unsigned long long __u64; |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | /* | 46 | /* |