* [PATCH] cfg80211: convert mutex assert to macro
@ 2009-04-11 11:32 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-04-11 11:32 UTC (permalink / raw)
To: John Linville; +Cc: Maxim Levitsky, linux-wireless
That will make the various cases where the WARN_ON
can happen distinguishable.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/wireless/core.h | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- wireless-testing.orig/net/wireless/core.h 2009-04-11 13:31:00.000000000 +0200
+++ wireless-testing/net/wireless/core.h 2009-04-11 13:31:20.000000000 +0200
@@ -73,10 +73,7 @@ bool wiphy_idx_valid(int wiphy_idx)
extern struct mutex cfg80211_mutex;
extern struct list_head cfg80211_drv_list;
-static inline void assert_cfg80211_lock(void)
-{
- WARN_ON(!mutex_is_locked(&cfg80211_mutex));
-}
+#define assert_cfg80211_lock() WARN_ON(!mutex_is_locked(&cfg80211_mutex))
/*
* You can use this to mark a wiphy_idx as not having an associated wiphy.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-11 11:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-11 11:32 [PATCH] cfg80211: convert mutex assert to macro Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox