diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2014-10-12 15:02:13 +0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-05-31 14:14:07 +0300 |
commit | 5f32943b5e9a48bf3269430e1a7a210411e0cc98 (patch) | |
tree | fe79cd121b75b25f74d94db19806612ee032fbcc /arch/um/os-Linux/skas/mem.c | |
parent | 05eacfd00ccf239a24cfb409b084fa126c2e9468 (diff) | |
download | linux-5f32943b5e9a48bf3269430e1a7a210411e0cc98.tar.xz |
um/os-Linux: Use char[] for syscall_stub declarations
When declaring __syscall_stub_start, use the same type in UML userspace
code as in arch/um/include/asm/sections.h.
While at it, also declare batch_syscall_stub as char[].
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux/skas/mem.c')
-rw-r--r-- | arch/um/os-Linux/skas/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/os-Linux/skas/mem.c b/arch/um/os-Linux/skas/mem.c index e7f8c945a573..35015e3e1e87 100644 --- a/arch/um/os-Linux/skas/mem.c +++ b/arch/um/os-Linux/skas/mem.c @@ -18,7 +18,7 @@ #include <sysdep/ptrace.h> #include <sysdep/stub.h> -extern unsigned long batch_syscall_stub, __syscall_stub_start; +extern char batch_syscall_stub[], __syscall_stub_start[]; extern void wait_stub_done(int pid); @@ -38,8 +38,8 @@ static int __init init_syscall_regs(void) { get_safe_registers(syscall_regs, NULL); syscall_regs[REGS_IP_INDEX] = STUB_CODE + - ((unsigned long) &batch_syscall_stub - - (unsigned long) &__syscall_stub_start); + ((unsigned long) batch_syscall_stub - + (unsigned long) __syscall_stub_start); return 0; } |