lkml.org 
[lkml]   [2008]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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;

\
 
 \ /
  Last update: 2008-12-02 23:55    [W:0.054 / U:1.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site