]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix compilation warning for cfg80211_leave_all()
authorArend van Spriel <arend@broadcom.com>
Sun, 23 Jun 2013 10:51:21 +0000 (12:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 24 Jun 2013 13:57:32 +0000 (15:57 +0200)
commit7987d119cb7abfcb4b935dc8fb35a2ee06c7b220
treec9c023f1193ba54bb21e7603690feae687f4908b
parentc9daff1a615be601640a01b1959db27f11eda864
cfg80211: fix compilation warning for cfg80211_leave_all()

The following compilation issue popped up moving from v3.10-rc1 to
v3.10-rc6 after merging wireless-testing.

net/wireless/sysfs.c:86:13: error: 'cfg80211_leave_all' defined
but not used [-Werror=unused-function]

The function is only called when CONFIG_PM is enabled. Moving the
function under CONFIG_PM as well.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/sysfs.c