]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211-wext: export symbols only when needed
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jan 2015 13:00:53 +0000 (14:00 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 28 Feb 2015 20:31:09 +0000 (21:31 +0100)
commitcbd68440efd21051bb284e44f564311d9d39b0ce
treefb20cff972e089702c3c98bffbc7868bb84834ed
parentfc942e93598b3c25a741cccf7e7fe720355d8881
cfg80211-wext: export symbols only when needed

When a fully converted cfg80211 driver needs cfg80211-wext for
userspace API purposes, the symbols need not be exported. When
other drivers (orinoco/hermes or ipw2200) are enabled, they do
need the symbols exported as they use them directly.

Make those drivers select a new CFG80211_WEXT_EXPORT Kconfig
symbol (instead of just CFG80211_WEXT) and export the functions
only if requested - this saves about 1/2k due to the size of
EXPORT_SYMBOL() itself.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ipw2x00/Kconfig
drivers/net/wireless/orinoco/Kconfig
net/wireless/Kconfig
net/wireless/scan.c
net/wireless/wext-compat.c
net/wireless/wext-compat.h