]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: move exported event functions into nl80211
authorJohannes Berg <johannes.berg@intel.com>
Fri, 22 Feb 2013 21:05:20 +0000 (22:05 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:35:46 +0000 (16:35 +0100)
commit4522d6cc4ece331deb289f3740318b4621ee90dd
tree900d905694e42ffbaf85129bf5ec74c6887756d4
parent2a4501502960d58ab72295cea4868d1b6af8ce1a
cfg80211: move exported event functions into nl80211

This is the sort of thing gcc's LTO could do, but since
we don't have that yet we can also do it manually. The
advantage is reduced code, both source and binary, e.g.
on x86-64

   text    data     bss     dec     hex filename
 442825   56230     776  499831   7a077 cfg80211.ko (before)
 441585   56230     776  498591   79b9f cfg80211.ko (after)

a reduction of ~1k.

But in order to not complicate the code move only those
functions that are simple wrappers, not those that have
functionality of their own.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/ap.c
net/wireless/mesh.c
net/wireless/mlme.c
net/wireless/nl80211.c
net/wireless/nl80211.h