All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [Patch] uml: drop const qualifier for kernel_execve()
@ 2008-12-02 22:51 ` Américo Wang
  0 siblings, 0 replies; 14+ messages in thread
From: Américo Wang @ 2008-12-02 22:51 UTC (permalink / raw)
  To: LKML, Andrew Morton; +Cc: jdike, user-mode-linux-devel

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;

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-12-26  9:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 22:51 [uml-devel] [Patch] uml: drop const qualifier for kernel_execve() Américo Wang
2008-12-02 22:51 ` Américo Wang
2008-12-03  1:20 ` [uml-devel] " Johannes Weiner
2008-12-03  1:20   ` Johannes Weiner
2008-12-03 12:32   ` [uml-devel] " Américo Wang
2008-12-03 12:32     ` Américo Wang
2008-12-03 13:40     ` [uml-devel] " Johannes Weiner
2008-12-03 13:40       ` Johannes Weiner
2008-12-06  1:02       ` [uml-devel] " Américo Wang
2008-12-06  1:02         ` Américo Wang
2008-12-07 19:55         ` [uml-devel] " Johannes Weiner
2008-12-07 19:55           ` Johannes Weiner
2008-12-26  9:32           ` [uml-devel] " Américo Wang
2008-12-26  9:32             ` Américo Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.