diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-01-16 18:09:38 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-01-19 09:43:08 -0500 |
commit | 42b16b3fbb5ee4555f5dee6220f3ccaa6e1ebe47 (patch) | |
tree | 966c1266afca5dd0e59cace37f7cd49577bdf0e2 /net | |
parent | f0940cee222790e6e995a23f25c4ffb23f939a24 (diff) |
Kill off warning: ‘inline’ is not at beginning of declaration
Fix a bunch of
warning: ‘inline’ is not at beginning of declaration
messages when building a 'make allyesconfig' kernel with -Wextra.
These warnings are trivial to kill, yet rather annoying when building with
-Wextra.
The more we can cut down on pointless crap like this the better (IMHO).
A previous patch to do this for a 'allnoconfig' build has already been
merged. This just takes the cleanup a little further.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/inet6_hashtables.c | 2 | ||||
-rw-r--r-- | net/mac80211/tx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/inet6_hashtables.c b/net/ipv6/inet6_hashtables.c index 633a6c266136..b53197233709 100644 --- a/net/ipv6/inet6_hashtables.c +++ b/net/ipv6/inet6_hashtables.c | |||
@@ -124,7 +124,7 @@ out: | |||
124 | } | 124 | } |
125 | EXPORT_SYMBOL(__inet6_lookup_established); | 125 | EXPORT_SYMBOL(__inet6_lookup_established); |
126 | 126 | ||
127 | static int inline compute_score(struct sock *sk, struct net *net, | 127 | static inline int compute_score(struct sock *sk, struct net *net, |
128 | const unsigned short hnum, | 128 | const unsigned short hnum, |
129 | const struct in6_addr *daddr, | 129 | const struct in6_addr *daddr, |
130 | const int dif) | 130 | const int dif) |
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 5950e3abead9..a449dd508682 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -173,7 +173,7 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, int group_addr, | |||
173 | return cpu_to_le16(dur); | 173 | return cpu_to_le16(dur); |
174 | } | 174 | } |
175 | 175 | ||
176 | static int inline is_ieee80211_device(struct ieee80211_local *local, | 176 | static inline int is_ieee80211_device(struct ieee80211_local *local, |
177 | struct net_device *dev) | 177 | struct net_device *dev) |
178 | { | 178 | { |
179 | return local == wdev_priv(dev->ieee80211_ptr); | 179 | return local == wdev_priv(dev->ieee80211_ptr); |