diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-11 11:32:46 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 20:54:45 (GMT) |
commit | 7edfab7adef45a09b459cb7f5957f476108f5e77 (patch) | |
tree | 06c79f7103259a28ed27636d6c1ed4eff226b7d7 /net/wireless | |
parent | 4312a86b6840bca503603e918996b139fa3293ba (diff) | |
download | linux-7edfab7adef45a09b459cb7f5957f476108f5e77.tar.xz |
cfg80211: convert mutex assert to macro
That will make the various cases where the WARN_ON
can happen distinguishable.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/core.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h index fcee83a..02668b02 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h @@ -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. |