aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-avr32
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2007-10-17 02:27:13 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:53 -0400
commit68a9bd0cd5824073e3232b102011ec568a517646 (patch)
treef6dd6ea6f4b45194fdfb4022cf1203573362d8b6 /include/asm-avr32
parentac8d35c5658377c280dc830352f66233e2f76f73 (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>
Diffstat (limited to 'include/asm-avr32')
-rw-r--r--include/asm-avr32/types.h6
1 files changed, 3 insertions, 3 deletions
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;
25typedef __signed__ int __s32; 25typedef __signed__ int __s32;
26typedef unsigned int __u32; 26typedef unsigned int __u32;
27 27
28#if defined(__GNUC__) && !defined(__STRICT_ANSI__) 28#if defined(__GNUC__)
29typedef __signed__ long long __s64; 29__extension__ typedef __signed__ long long __s64;
30typedef unsigned long long __u64; 30__extension__ typedef unsigned long long __u64;
31#endif 31#endif
32 32
33#endif /* __ASSEMBLY__ */ 33#endif /* __ASSEMBLY__ */