[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100818175533.22912.89002.stgit@warthog.procyon.org.uk>
Date: Wed, 18 Aug 2010 18:55:33 +0100
From: David Howells <dhowells@...hat.com>
To: tony.luck@...il.com
Cc: torvalds@...l.org, akpm@...ux-foundation.org,
xiyou.wangcong@...il.com, ralf@...ux-mips.org,
rmk+kernel@....linux.org.uk, linux-kernel@...r.kernel.org,
David Howells <dhowells@...hat.com>
Subject: [PATCH] Fix the declaration of sys_execve() in asm-generic/syscalls.h
Fix the declaration of sys_execve() in asm-generic/syscalls.h to have various
consts applied to its pointers.
Signed-off-by: David Howells <dhowells@...hat.com>
---
include/asm-generic/syscalls.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/asm-generic/syscalls.h b/include/asm-generic/syscalls.h
index df84e3b..d89dec8 100644
--- a/include/asm-generic/syscalls.h
+++ b/include/asm-generic/syscalls.h
@@ -23,8 +23,10 @@ asmlinkage long sys_vfork(struct pt_regs *regs);
#endif
#ifndef sys_execve
-asmlinkage long sys_execve(char __user *filename, char __user * __user *argv,
- char __user * __user *envp, struct pt_regs *regs);
+asmlinkage long sys_execve(const char __user *filename,
+ const char __user *const __user *argv,
+ const char __user *const __user *envp,
+ struct pt_regs *regs);
#endif
#ifndef sys_mmap2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists