git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
linux
/
byteorder
/
swabb.h
diff --git
a/include/linux/byteorder/swabb.h
b/include/linux/byteorder/swabb.h
index
d28d9a8
..
ae5e5f9
100644
(file)
--- a/
include/linux/byteorder/swabb.h
+++ b/
include/linux/byteorder/swabb.h
@@
-77,7
+77,7
@@
/*
* Allow constant folding
*/
/*
* Allow constant folding
*/
-#if defined(__GNUC__) &&
(__GNUC__ >= 2) &&
defined(__OPTIMIZE__)
+#if defined(__GNUC__) && defined(__OPTIMIZE__)
# define __swahw32(x) \
(__builtin_constant_p((__u32)(x)) ? \
___swahw32((x)) : \
# define __swahw32(x) \
(__builtin_constant_p((__u32)(x)) ? \
___swahw32((x)) : \
@@
-92,29
+92,32
@@
#endif /* OPTIMIZE */
#endif /* OPTIMIZE */
-static
__inline__ __const__
__u32 __fswahw32(__u32 x)
+static
inline
__u32 __fswahw32(__u32 x)
{
return __arch__swahw32(x);
}
{
return __arch__swahw32(x);
}
-static __inline__ __u32 __swahw32p(__u32 *x)
+
+static inline __u32 __swahw32p(__u32 *x)
{
return __arch__swahw32p(x);
}
{
return __arch__swahw32p(x);
}
-static __inline__ void __swahw32s(__u32 *addr)
+
+static inline void __swahw32s(__u32 *addr)
{
__arch__swahw32s(addr);
}
{
__arch__swahw32s(addr);
}
-
-static __inline__ __const__ __u32 __fswahb32(__u32 x)
+static inline __u32 __fswahb32(__u32 x)
{
return __arch__swahb32(x);
}
{
return __arch__swahb32(x);
}
-static __inline__ __u32 __swahb32p(__u32 *x)
+
+static inline __u32 __swahb32p(__u32 *x)
{
return __arch__swahb32p(x);
}
{
return __arch__swahb32p(x);
}
-static __inline__ void __swahb32s(__u32 *addr)
+
+static inline void __swahb32s(__u32 *addr)
{
__arch__swahb32s(addr);
}
{
__arch__swahb32s(addr);
}