[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#245387: Usage of long long on amd64.



Package: linux-kernel-headers
Version: 2.5.999-test7-bk-15

Here is a small patch that fixes warning/errors about usage of
long long for amd64.


Kurt

--- include/asm-x86_64/types.h.orig	2004-04-22 23:16:11.294209120 +0200
+++ include/asm-x86_64/types.h	2004-04-22 23:16:02.109605392 +0200
@@ -19,8 +19,10 @@
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
+#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
 typedef __signed__ long long __s64;
-typedef unsigned long long  __u64;
+typedef unsigned long long __u64;
+#endif
 
 #endif /* __ASSEMBLY__ */
 
--- include/asm-x86_64/byteorder.h.orig	2004-04-22 23:15:06.162110704 +0200
+++ include/asm-x86_64/byteorder.h	2004-04-22 23:17:36.556247320 +0200
@@ -5,11 +5,13 @@
 
 #ifdef __GNUC__
 
+#if !defined (__STRICT_ANSI__)
 static __inline__ __u64 ___arch__swab64(__u64 x)
 {
 	__asm__("bswapq %0" : "=r" (x) : "0" (x));
 	return x;
 }
+#endif
 
 static __inline__ __u32 ___arch__swab32(__u32 x)
 {

Reply to: