kmod: move call_usermodehelper_fns() to .c file and unexport all it's helpers
authorBoaz Harrosh <[email protected]>
Thu, 31 May 2012 23:26:15 +0000 (16:26 -0700)
committerLinus Torvalds <[email protected]>
Fri, 1 Jun 2012 00:49:28 +0000 (17:49 -0700)
commit785042f2e275089e22c36b462f6495ce8d91732d
tree4e847408b4e675c7c616d357ae9b330f7104fbc0
parent81ab6e7b26b453a795d46f2616ed0e31d97f05b9
kmod: move call_usermodehelper_fns() to .c file and unexport all it's helpers

If we move call_usermodehelper_fns() to kmod.c file and EXPORT_SYMBOL it
we can avoid exporting all it's helper functions:
call_usermodehelper_setup
call_usermodehelper_setfns
call_usermodehelper_exec
And make all of them static to kmod.c

Since the optimizer will see all these as a single call site it will
inline them inside call_usermodehelper_fns().  So we loose the call to
_fns but gain 3 calls to the helpers.  (Not that it matters)

Signed-off-by: Boaz Harrosh <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/kmod.h
kernel/kmod.c