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>
Showing
- include/asm-arm/types.h 3 additions, 3 deletionsinclude/asm-arm/types.h
- include/asm-avr32/types.h 3 additions, 3 deletionsinclude/asm-avr32/types.h
- include/asm-blackfin/types.h 3 additions, 3 deletionsinclude/asm-blackfin/types.h
- include/asm-cris/types.h 3 additions, 3 deletionsinclude/asm-cris/types.h
- include/asm-frv/types.h 3 additions, 3 deletionsinclude/asm-frv/types.h
- include/asm-h8300/types.h 3 additions, 3 deletionsinclude/asm-h8300/types.h
- include/asm-m32r/types.h 3 additions, 3 deletionsinclude/asm-m32r/types.h
- include/asm-m68k/types.h 3 additions, 3 deletionsinclude/asm-m68k/types.h
- include/asm-mips/types.h 3 additions, 3 deletionsinclude/asm-mips/types.h
- include/asm-parisc/types.h 3 additions, 3 deletionsinclude/asm-parisc/types.h
- include/asm-powerpc/types.h 3 additions, 3 deletionsinclude/asm-powerpc/types.h
- include/asm-s390/types.h 3 additions, 3 deletionsinclude/asm-s390/types.h
- include/asm-sh/types.h 3 additions, 3 deletionsinclude/asm-sh/types.h
- include/asm-sh64/types.h 3 additions, 3 deletionsinclude/asm-sh64/types.h
- include/asm-v850/types.h 3 additions, 3 deletionsinclude/asm-v850/types.h
- include/asm-x86/types_32.h 3 additions, 3 deletionsinclude/asm-x86/types_32.h
- include/asm-xtensa/types.h 3 additions, 3 deletionsinclude/asm-xtensa/types.h
Loading
Please register or sign in to comment