diff options
author | Olaf Hering | 2007-10-17 08:27:13 +0200 |
---|---|---|
committer | Linus Torvalds | 2007-10-17 17:42:53 +0200 |
commit | 68a9bd0cd5824073e3232b102011ec568a517646 (patch) | |
tree | f6dd6ea6f4b45194fdfb4022cf1203573362d8b6 /include/asm-blackfin | |
parent | cramfs: error message about endianess (diff) | |
download | kernel-qcow2-linux-68a9bd0cd5824073e3232b102011ec568a517646.tar.gz kernel-qcow2-linux-68a9bd0cd5824073e3232b102011ec568a517646.tar.xz kernel-qcow2-linux-68a9bd0cd5824073e3232b102011ec568a517646.zip |
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-blackfin')
-rw-r--r-- | include/asm-blackfin/types.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; typedef unsigned int __u32; /* HK0617 -- Changes to unsigned long temporarily */ -#if defined(__GNUC__) && !defined(__STRICT_ANSI__) -typedef __signed__ long long __s64; -typedef unsigned long long __u64; +#if defined(__GNUC__) +__extension__ typedef __signed__ long long __s64; +__extension__ typedef unsigned long long __u64; #endif #endif /* __ASSEMBLY__ */ |