Commit ea229e68 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

cfg80211: remove spurious __KERNEL__ ifdef

The net/cfg80211.h header file isn't exported to
userspace, so there's no need for any kind of
__KERNEL__ protection in it. If it was exported,
everything else in it would need protection as
well, not just the logging stuff ...

Cc:Joe Perches <joe@perches.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 663fcafd
...@@ -2553,8 +2553,6 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev, ...@@ -2553,8 +2553,6 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev,
enum nl80211_cqm_rssi_threshold_event rssi_event, enum nl80211_cqm_rssi_threshold_event rssi_event,
gfp_t gfp); gfp_t gfp);
#ifdef __KERNEL__
/* Logging, debugging and troubleshooting/diagnostic helpers. */ /* Logging, debugging and troubleshooting/diagnostic helpers. */
/* wiphy_printk helpers, similar to dev_printk */ /* wiphy_printk helpers, similar to dev_printk */
...@@ -2601,6 +2599,4 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev, ...@@ -2601,6 +2599,4 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev,
#define wiphy_WARN(wiphy, format, args...) \ #define wiphy_WARN(wiphy, format, args...) \
WARN(1, "wiphy: %s\n" format, wiphy_name(wiphy), ##args); WARN(1, "wiphy: %s\n" format, wiphy_name(wiphy), ##args);
#endif
#endif /* __NET_CFG80211_H */ #endif /* __NET_CFG80211_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment