]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
hwsim: make testmode_cmd static
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 7 Jul 2009 09:00:55 +0000 (11:00 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:02:34 +0000 (15:02 -0400)
sparse correctly complains about this, no reason
for it not to be static.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c

index 6ac8565072e9effae00d95fd7b6ae9432a57cdf4..4befa48dbc34458ee53283961ceadd1cc8c63609 100644 (file)
@@ -729,7 +729,8 @@ static const struct nla_policy hwsim_testmode_policy[HWSIM_TM_ATTR_MAX + 1] = {
 
 static int hwsim_fops_ps_write(void *dat, u64 val);
 
-int mac80211_hwsim_testmode_cmd(struct ieee80211_hw *hw, void *data, int len)
+static int mac80211_hwsim_testmode_cmd(struct ieee80211_hw *hw,
+                                      void *data, int len)
 {
        struct mac80211_hwsim_data *hwsim = hw->priv;
        struct nlattr *tb[HWSIM_TM_ATTR_MAX + 1];