wifi: cfg80211: unexport wireless_nlevent_flush()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 Oct 2024 19:47:16 +0000 (21:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 8 Oct 2024 19:53:55 +0000 (21:53 +0200)
This no longer needs to be exported, so don't export it.

Link: https://patch.msgid.link/20241007214715.3dd736dc3ac0.I1388536e99c37f28a007dd753c473ad21513d9a9@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/iw_handler.h
net/wireless/wext-compat.h
net/wireless/wext-core.c

index fc44fcca1d5ce0598ed9cce2823d8472fe2e683f..804587b7592b2ef6ec1f688c326906eed6b928a8 100644 (file)
@@ -413,12 +413,6 @@ struct iw_spy_data {
 /* Send a single event to user space */
 void wireless_send_event(struct net_device *dev, unsigned int cmd,
                         union iwreq_data *wrqu, const char *extra);
-#ifdef CONFIG_WEXT_CORE
-/* flush all previous wext events - if work is done from netdev notifiers */
-void wireless_nlevent_flush(void);
-#else
-static inline void wireless_nlevent_flush(void) {}
-#endif
 
 /* We may need a function to send a stream of events to user space.
  * More on that later... */
index 8251ca5df8aebc933b5b1ce25ade0b82f4cb34f5..f680dd134582998fbc4f6dd21126785e3652dbbb 100644 (file)
@@ -5,6 +5,12 @@
 #include <net/iw_handler.h>
 #include <linux/wireless.h>
 
+#ifdef CONFIG_WEXT_CORE
+void wireless_nlevent_flush(void);
+#else
+static inline void wireless_nlevent_flush(void) {}
+#endif
+
 int cfg80211_ibss_wext_siwfreq(struct net_device *dev,
                               struct iw_request_info *info,
                               struct iw_freq *wextfreq, char *extra);
index 3bb04b05c5cea79a83904198a7db4411f69aea4e..00c640b3e86e6921f6745a410eb0429ad636420a 100644 (file)
@@ -20,6 +20,7 @@
 #include <net/netlink.h>
 #include <net/wext.h>
 #include <net/net_namespace.h>
+#include "wext-compat.h"
 
 typedef int (*wext_ioctl_func)(struct net_device *, struct iwreq *,
                               unsigned int, struct iw_request_info *,
@@ -356,7 +357,6 @@ void wireless_nlevent_flush(void)
        }
        up_read(&net_rwsem);
 }
-EXPORT_SYMBOL_GPL(wireless_nlevent_flush);
 
 static int wext_netdev_notifier_call(struct notifier_block *nb,
                                     unsigned long state, void *ptr)