[Patch] uml: drop const qualifier for kernel_execve()

From: AmÃrico Wang
Date: Tue Dec 02 2008 - 17:51:36 EST

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@xxxxxxxxx>
Cc: Jeff Dike <jdike@xxxxxxxxxxx>

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;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/