diff options
| author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2013-04-30 18:28:09 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 20:04:06 -0400 |
| commit | 66e5b7e1948cdbdca2b0cc6ddc6d69ee84583fb4 (patch) | |
| tree | aab4bddfc97523c11a7e3714644a29373c8d4a85 /include/linux | |
| parent | 907ed1328d2a748f3d6028503d3e04c74ea62730 (diff) | |
kmod: remove call_usermodehelper_fns()
This function suffers from not being able to determine if the cleanup is
called in case it returns -ENOMEM. Nobody is using it anymore, so let's
remove it.
Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Tejun Heo <tj@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kmod.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 7eebcf5d75f1..0555cc66a15b 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h | |||
| @@ -67,9 +67,7 @@ struct subprocess_info { | |||
| 67 | }; | 67 | }; |
| 68 | 68 | ||
| 69 | extern int | 69 | extern int |
| 70 | call_usermodehelper_fns(char *path, char **argv, char **envp, int wait, | 70 | call_usermodehelper(char *path, char **argv, char **envp, int wait); |
| 71 | int (*init)(struct subprocess_info *info, struct cred *new), | ||
| 72 | void (*cleanup)(struct subprocess_info *), void *data); | ||
| 73 | 71 | ||
| 74 | extern struct subprocess_info * | 72 | extern struct subprocess_info * |
| 75 | call_usermodehelper_setup(char *path, char **argv, char **envp, gfp_t gfp_mask, | 73 | call_usermodehelper_setup(char *path, char **argv, char **envp, gfp_t gfp_mask, |
| @@ -79,13 +77,6 @@ call_usermodehelper_setup(char *path, char **argv, char **envp, gfp_t gfp_mask, | |||
| 79 | extern int | 77 | extern int |
| 80 | call_usermodehelper_exec(struct subprocess_info *info, int wait); | 78 | call_usermodehelper_exec(struct subprocess_info *info, int wait); |
| 81 | 79 | ||
| 82 | static inline int | ||
| 83 | call_usermodehelper(char *path, char **argv, char **envp, int wait) | ||
| 84 | { | ||
| 85 | return call_usermodehelper_fns(path, argv, envp, wait, | ||
| 86 | NULL, NULL, NULL); | ||
| 87 | } | ||
| 88 | |||
| 89 | extern struct ctl_table usermodehelper_table[]; | 80 | extern struct ctl_table usermodehelper_table[]; |
| 90 | 81 | ||
| 91 | enum umh_disable_depth { | 82 | enum umh_disable_depth { |
