summaryrefslogtreecommitdiffstats
path: root/arch/h8300
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-08-31 16:52:21 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-09-07 13:52:28 -0700
commit1e72910e248fb94839cd63c0c62107b1f15716f9 (patch)
tree4460512e548e3f7e2e3ad002022ca9ce4f058cb7 /arch/h8300
parentb857189d94e0d8a05943349618c4f84dbc57144c (diff)
downloadblackbird-obmc-linux-1e72910e248fb94839cd63c0c62107b1f15716f9.tar.gz
blackbird-obmc-linux-1e72910e248fb94839cd63c0c62107b1f15716f9.zip
h8300: Fix missing consts in kernel_execve()
Fix missing consts in h8300's kernel_execve(): arch/h8300/kernel/sys_h8300.c: In function 'kernel_execve': arch/h8300/kernel/sys_h8300.c:59: warning: initialization from incompatible pointer type arch/h8300/kernel/sys_h8300.c:60: warning: initialization from incompatible pointer type Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/h8300')
-rw-r--r--arch/h8300/kernel/sys_h8300.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/h8300/kernel/sys_h8300.c b/arch/h8300/kernel/sys_h8300.c
index dc1ac0243b78..aaf5e5a48f93 100644
--- a/arch/h8300/kernel/sys_h8300.c
+++ b/arch/h8300/kernel/sys_h8300.c
@@ -56,8 +56,8 @@ int kernel_execve(const char *filename,
const char *const envp[])
{
register long res __asm__("er0");
- register char *const *_c __asm__("er3") = envp;
- register char *const *_b __asm__("er2") = argv;
+ register const char *const *_c __asm__("er3") = envp;
+ register const char *const *_b __asm__("er2") = argv;
register const char * _a __asm__("er1") = filename;
__asm__ __volatile__ ("mov.l %1,er0\n\t"
"trapa #0\n\t"
OpenPOWER on IntegriCloud