]> 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>
Thu, 3 May 2012 05:44:37 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:53 +0000 (15:46 +1000)
commit55215f2c180ce932b8be9e786b7006f76b755416
treead191375da5c58e448518b28e0375192860cab9a
parent1b3872ff6b4d0378d766db88572ecd7b022c12ce
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