[PATCH] swabb.h warning fixes

In file included from drivers/media/dvb/ttpci/av7110_hw.c:38:
include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
In file included from drivers/media/dvb/ttpci/av7110_v4l.c:36:
include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
In file included from drivers/media/dvb/ttpci/av7110_av.c:37:
include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
drivers/isdn/icn/icn.c:719:4: warning: #warning TODO test headroom or use skb->nb to flag ACK
In file included from drivers/media/dvb/ttpci/av7110_ca.c:39:
include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type
In file included from drivers/media/dvb/ttpci/av7110.c:41:
include/linux/byteorder/swabb.h:96: warning: type qualifiers ignored on function return type
include/linux/byteorder/swabb.h:110: warning: type qualifiers ignored on function return type

Does declaring a function to return a const value actually mean something to
gcc?

Dunno. Kill it and replace sone `__inline__'s with `inline' too.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Andrew Morton and committed by Linus Torvalds 05133fc4 b79646e3

+10 -7
+10 -7
include/linux/byteorder/swabb.h
··· 92 92 #endif /* OPTIMIZE */ 93 93 94 94 95 - static __inline__ __const__ __u32 __fswahw32(__u32 x) 95 + static inline __u32 __fswahw32(__u32 x) 96 96 { 97 97 return __arch__swahw32(x); 98 98 } 99 - static __inline__ __u32 __swahw32p(__u32 *x) 99 + 100 + static inline __u32 __swahw32p(__u32 *x) 100 101 { 101 102 return __arch__swahw32p(x); 102 103 } 103 - static __inline__ void __swahw32s(__u32 *addr) 104 + 105 + static inline void __swahw32s(__u32 *addr) 104 106 { 105 107 __arch__swahw32s(addr); 106 108 } 107 109 108 - 109 - static __inline__ __const__ __u32 __fswahb32(__u32 x) 110 + static inline __u32 __fswahb32(__u32 x) 110 111 { 111 112 return __arch__swahb32(x); 112 113 } 113 - static __inline__ __u32 __swahb32p(__u32 *x) 114 + 115 + static inline __u32 __swahb32p(__u32 *x) 114 116 { 115 117 return __arch__swahb32p(x); 116 118 } 117 - static __inline__ void __swahb32s(__u32 *addr) 119 + 120 + static inline void __swahb32s(__u32 *addr) 118 121 { 119 122 __arch__swahb32s(addr); 120 123 }