diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2012-05-31 19:26:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-31 20:49:28 -0400 |
commit | ae3cef7300e9fddc35ad251dd5f27c5b88c8594a (patch) | |
tree | d1f057eaeac5234e9056b3e9fa186c1bd7873bc5 | |
parent | f0aac6162e945590057dcfb841bdce8fd18ed4f6 (diff) |
kmod: unexport call_usermodehelper_freeinfo()
call_usermodehelper_freeinfo() is not used outside of kmod.c. So unexport
it, and make it static to kmod.c
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/kmod.h | 4 | ||||
-rw-r--r-- | kernel/kmod.c | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/kmod.h b/include/linux/kmod.h index dd99c329e161..f07f9a4e10ff 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h | |||
@@ -79,10 +79,6 @@ void call_usermodehelper_setfns(struct subprocess_info *info, | |||
79 | /* Actually execute the sub-process */ | 79 | /* Actually execute the sub-process */ |
80 | int call_usermodehelper_exec(struct subprocess_info *info, int wait); | 80 | int call_usermodehelper_exec(struct subprocess_info *info, int wait); |
81 | 81 | ||
82 | /* Free the subprocess_info. This is only needed if you're not going | ||
83 | to call call_usermodehelper_exec */ | ||
84 | void call_usermodehelper_freeinfo(struct subprocess_info *info); | ||
85 | |||
86 | static inline int | 82 | static inline int |
87 | call_usermodehelper_fns(char *path, char **argv, char **envp, int wait, | 83 | call_usermodehelper_fns(char *path, char **argv, char **envp, int wait, |
88 | int (*init)(struct subprocess_info *info, struct cred *new), | 84 | int (*init)(struct subprocess_info *info, struct cred *new), |
diff --git a/kernel/kmod.c b/kernel/kmod.c index 05698a7415fe..21a0f8e99102 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c | |||
@@ -221,13 +221,12 @@ fail: | |||
221 | return 0; | 221 | return 0; |
222 | } | 222 | } |
223 | 223 | ||
224 | void call_usermodehelper_freeinfo(struct subprocess_info *info) | 224 | static void call_usermodehelper_freeinfo(struct subprocess_info *info) |
225 | { | 225 | { |
226 | if (info->cleanup) | 226 | if (info->cleanup) |
227 | (*info->cleanup)(info); | 227 | (*info->cleanup)(info); |
228 | kfree(info); | 228 | kfree(info); |
229 | } | 229 | } |
230 | EXPORT_SYMBOL(call_usermodehelper_freeinfo); | ||
231 | 230 | ||
232 | static void umh_complete(struct subprocess_info *sub_info) | 231 | static void umh_complete(struct subprocess_info *sub_info) |
233 | { | 232 | { |