linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cfg80211: remove spurious __KERNEL__ ifdef
@ 2010-09-30 19:21 Johannes Berg
  2010-09-30 19:36 ` Joe Perches
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2010-09-30 19:21 UTC (permalink / raw)
  To: John Linville; +Cc: Joe Perches, linux-wireless@vger.kernel.org

From: Johannes Berg <johannes.berg@intel.com>

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: Johannes Berg <johannes.berg@intel.com>
---
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 */



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-04 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 19:21 [PATCH] cfg80211: remove spurious __KERNEL__ ifdef Johannes Berg
2010-09-30 19:36 ` Joe Perches
2010-10-04 18:33   ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).