|
From: Oliver J. <oli...@mo...> - 2004-03-03 16:23:15
|
On Wed, 2004-03-03 at 16:49, Oliver Jehle wrote:
> > >perhaps a feature of a newer gcc version .. .-(
> >
> > I try to look into it it tonight.
> >
> > Heiko
>
> will also try on my 3.3.1 suse gcc if i can compile lvm2 with the kernel
> headers of 2.6.3
the change was between 2.6.1 and 2.6.2.. but here compared with 2.6.3
--- /usr/src/linux-2.6.1/include/linux/byteorder/swab.h 2003-12-18
03:59:57.000000000 +0100
+++ swab.h 2004-02-18 04:59:53.000000000 +0100
@@ -15,6 +15,8 @@
*
*/
+#include <linux/compiler.h>
+
/* casts are necessary for constants, because we never know how for
sure
* how U/UL/ULL map to __u16, __u32, __u64. At least not in a portable
way.
*/
@@ -128,7 +130,7 @@
#endif /* OPTIMIZE */
-static __inline__ __const__ __u16 __fswab16(__u16 x)
+static __inline__ __attribute_const__ __u16 __fswab16(__u16 x)
{
return __arch__swab16(x);
}
@@ -141,7 +143,7 @@
__arch__swab16s(addr);
}
-static __inline__ __const__ __u32 __fswab32(__u32 x)
+static __inline__ __attribute_const__ __u32 __fswab32(__u32 x)
{
return __arch__swab32(x);
}
@@ -155,7 +157,7 @@
}
#ifdef __BYTEORDER_HAS_U64__
-static __inline__ __const__ __u64 __fswab64(__u64 x)
+static __inline__ __attribute_const__ __u64 __fswab64(__u64 x)
{
# ifdef __SWAB_64_THRU_32__
__u32 h = x >> 32;
|