Skip to content

Commit

Permalink
uml: fix warnings in kernel_execve
Browse files Browse the repository at this point in the history
Fix the following warnings:

arch/um/kernel/syscall.c: In function 'kernel_execve':
arch/um/kernel/syscall.c:130: warning: passing argument 1 of 'um_execve' discards qualifiers from pointer target type
arch/um/kernel/syscall.c:130: warning: passing argument 2 of 'um_execve' discards qualifiers from pointer target type
arch/um/kernel/syscall.c:130: warning: passing argument 3 of 'um_execve' discards qualifiers from pointer target type

Signed-off-by: Miklos Szeredi <[email protected]>
Cc: Jeff Dike <[email protected]>
Cc: WANG Cong <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Miklos Szeredi authored and torvalds committed Apr 3, 2009
1 parent 7130f2f commit e4c2ff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/um/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ int kernel_execve(const char *filename, char *const argv[], char *const envp[])

fs = get_fs();
set_fs(KERNEL_DS);
ret = um_execve(filename, argv, envp);
ret = um_execve((char *)filename, (char __user *__user *)argv,
(char __user *__user *) envp);
set_fs(fs);

return ret;
Expand Down

0 comments on commit e4c2ff1

Please sign in to comment.