From: Johannes Berg <johannes.berg@xxxxxxxxx> 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@xxxxxxxxxxx> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- Might be something that slipped in elsewhere too? include/net/cfg80211.h | 4 ---- 1 file changed, 4 deletions(-) --- wireless-testing.orig/include/net/cfg80211.h 2010-09-30 21:18:46.000000000 +0200 +++ wireless-testing/include/net/cfg80211.h 2010-09-30 21:18:51.000000000 +0200 @@ -2551,8 +2551,6 @@ void cfg80211_cqm_rssi_notify(struct net enum nl80211_cqm_rssi_threshold_event rssi_event, gfp_t gfp); -#ifdef __KERNEL__ - /* Logging, debugging and troubleshooting/diagnostic helpers. */ /* wiphy_printk helpers, similar to dev_printk */ @@ -2599,6 +2597,4 @@ void cfg80211_cqm_rssi_notify(struct net #define wiphy_WARN(wiphy, format, args...) \ WARN(1, "wiphy: %s\n" format, wiphy_name(wiphy), ##args); -#endif - #endif /* __NET_CFG80211_H */ -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html