wireless: correct sparse warning in wext-compat.c
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Jul 2010 16:22:40 +0000 (12:22 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Jul 2010 20:49:37 +0000 (16:49 -0400)
  CHECK   net/wireless/wext-compat.c
net/wireless/wext-compat.c:1434:5: warning: symbol 'cfg80211_wext_siwpmksa' was not declared. Should it be static?

Add declaration in cfg80211.h.  Also add an EXPORT_SYMBOL_GPL, since all
the peer functions have it.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h
net/wireless/wext-compat.c

index 9b8b3f486ec81bedb2880baeee9c12140cfd3688..f68ae54cdae66143a0d8839fa8eb3fcc4bb3c132 100644 (file)
@@ -1963,6 +1963,10 @@ int cfg80211_wext_giwap(struct net_device *dev,
                        struct iw_request_info *info,
                        struct sockaddr *ap_addr, char *extra);
 
+int cfg80211_wext_siwpmksa(struct net_device *dev,
+                          struct iw_request_info *info,
+                          struct iw_point *data, char *extra);
+
 /*
  * callbacks for asynchronous cfg80211 methods, notification
  * functions and BSS handling helpers
index 1ff1e9f491369b2a8a460192b14d6485633051a6..bb5e0a5ecfa1c2f999034bf4ceb34e69fbec855d 100644 (file)
@@ -1471,6 +1471,7 @@ int cfg80211_wext_siwpmksa(struct net_device *dev,
                return -EOPNOTSUPP;
        }
 }
+EXPORT_SYMBOL_GPL(cfg80211_wext_siwpmksa);
 
 static const iw_handler cfg80211_handlers[] = {
        [IW_IOCTL_IDX(SIOCGIWNAME)]     = (iw_handler) cfg80211_wext_giwname,