|
@@ -516,7 +516,7 @@ static void helper_unlock(void)
|
|
|
* Function must be runnable in either a process context or the
|
|
|
* context in which call_usermodehelper_exec is called.
|
|
|
*/
|
|
|
-struct subprocess_info *call_usermodehelper_setup(char *path, char **argv,
|
|
|
+struct subprocess_info *call_usermodehelper_setup(const char *path, char **argv,
|
|
|
char **envp, gfp_t gfp_mask,
|
|
|
int (*init)(struct subprocess_info *info, struct cred *new),
|
|
|
void (*cleanup)(struct subprocess_info *info),
|
|
@@ -613,7 +613,7 @@ EXPORT_SYMBOL(call_usermodehelper_exec);
|
|
|
* This function is the equivalent to use call_usermodehelper_setup() and
|
|
|
* call_usermodehelper_exec().
|
|
|
*/
|
|
|
-int call_usermodehelper(char *path, char **argv, char **envp, int wait)
|
|
|
+int call_usermodehelper(const char *path, char **argv, char **envp, int wait)
|
|
|
{
|
|
|
struct subprocess_info *info;
|
|
|
gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL;
|