remove strict ansi check from __u64 in asm/types.h
PATCH 133/327 remove strict ansi check from __u64 in asm/types.h
From: Olaf Hering <[email protected]>
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 <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/asm-arm/types.h | 6 +++--- include/asm-avr32/types.h | 6 +++--- include/asm-blackfin/types.h | 6 +++--- include/asm-cris/types.h | 6 +++--- include/asm-frv/types.h | 6 +++--- include/asm-h8300/types.h | 6 +++--- include/asm-m32r/types.h | 6 +++--- include/asm-m68k/types.h | 6 +++--- include/asm-mips/types.h | 6 +++--- include/asm-parisc/types.h | 6 +++--- include/asm-powerpc/types.h | 6 +++--- include/asm-s390/types.h | 6 +++--- include/asm-sh/types.h | 6 +++--- include/asm-sh64/types.h | 6 +++--- include/asm-v850/types.h | 6 +++--- include/asm-x86/types_32.h | 6 +++--- include/asm-xtensa/types.h | 6 +++--- 17 files changed, 51 insertions(+), 51 deletions(-)
include/asm-arm/types.h renamed from include/asm-arm/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -19,9 +19,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-avr32/types.h renamed from include/asm-avr32/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -25,9 +25,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-blackfin/types.h renamed from include/asm-blackfin/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -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__ */
include/asm-cris/types.h renamed from include/asm-cris/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -19,9 +19,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-frv/types.h renamed from include/asm-frv/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -30,9 +30,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-h8300/types.h renamed from include/asm-h8300/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -27,9 +27,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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 /*
include/asm-m32r/types.h renamed from include/asm-m32r/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -19,9 +19,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-m68k/types.h renamed from include/asm-m68k/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -27,9 +27,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-mips/types.h renamed from include/asm-mips/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -34,9 +34,9 @@ typedef unsigned long __u64;#else -#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
include/asm-parisc/types.h renamed from include/asm-parisc/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -19,9 +19,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-powerpc/types.h renamed from include/asm-powerpc/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -40,9 +40,9 @@ typedef unsigned int __u32;typedef __signed__ long __s64 ;typedef unsigned long __u64 ;#else -#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 /* __powerpc64__ */
include/asm-s390/types.h renamed from include/asm-s390/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -28,9 +28,9 @@ typedef __signed__ int __s32;typedef unsigned int __u32 ;#ifndef __s390x__ -#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 #else /* __s390x__ */ typedef __signed__ long __s64 ;
include/asm-sh/types.h renamed from include/asm-sh/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -19,9 +19,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-sh64/types.h renamed from include/asm-sh64/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -30,9 +30,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-v850/types.h renamed from include/asm-v850/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -27,9 +27,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-x86/types_32.h renamed from include/asm-x86/types_32.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -19,9 +19,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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__ */
include/asm-xtensa/types.h renamed from include/asm-xtensa/types.h~remove-strict-ansi-check-from-__u64-in-asm-typesh +3 -3
@@ -38,9 +38,9 @@ typedef unsigned short __u16; typedef __signed__ int __s32;typedef unsigned int __u32 ; -#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 /*
_