]> git.karo-electronics.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, 25 Apr 2012 01:04:41 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:37 +0000 (15:17 +1000)
commitffc0403d67fca9461d79b3fd8e9b8ff6bace3634
tree106ff54adeb7e1df9023cb8f9cb778efbdfc2aa2
parentee63b6fd43b9515a33b0d6ebcc7ff8cba9941ccf
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