Messages in this thread Patch in this message | | | Date | Tue, 2 Dec 2008 22:51:09 +0000 | From | "Américo Wang" <> | Subject | [Patch] uml: drop const qualifier for kernel_execve() |
| |
UML implementation of kernel_execve() should not have const qualifier, because it will finally call do_execve() which doesn't have.
This also shuts up a gcc warning on this.
Signed-off-by: WANG Cong <wangcong@zeuux.org> Cc: Jeff Dike <jdike@addtoit.com>
--- diff --git a/arch/um/kernel/syscall.c b/arch/um/kernel/syscall.c index c4df705..4fa62ee 100644 --- a/arch/um/kernel/syscall.c +++ b/arch/um/kernel/syscall.c @@ -120,7 +120,7 @@ long sys_olduname(struct oldold_utsname __user * name) return error; }
-int kernel_execve(const char *filename, char *const argv[], char *const envp[]) +int kernel_execve(char *filename, char * argv[], char * envp[]) { mm_segment_t fs; int ret;
| |