]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kmod: move call_usermodehelper_fns() to .c file and unexport all it's helpers
authorBoaz Harrosh <bharrosh@panasas.com>
Wed, 4 Apr 2012 00:08:32 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 11 Apr 2012 04:45:54 +0000 (14:45 +1000)
commite88ade90d066a4058063173485162397a0bfde6e
tree17993b70fc904fdb1e2f072bdb766a71bd38f4ac
parent9833e0e90c8f32f79cef30345e23bfeafce67145
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 <bharrosh@panasas.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/kmod.h
kernel/kmod.c