From 1be75af874aba6515167462b69741309dd1dd2a6 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Sat, 17 Dec 2016 03:21:56 -0800 Subject: compel_syscall(): make ret argument signed I saw this line in the code unsigned long sret = -ENOSYS; and ended up with this patch. Note syscall(2) man page says return value is long -- who am I to disagree? travis-ci: success for More polishing for compel cli Signed-off-by: Kir Kolyshkin Acked-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- compel/arch/aarch64/src/lib/infect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compel/arch/aarch64/src') diff --git a/compel/arch/aarch64/src/lib/infect.c b/compel/arch/aarch64/src/lib/infect.c index ee1ec7c20..4f5534b75 100644 --- a/compel/arch/aarch64/src/lib/infect.c +++ b/compel/arch/aarch64/src/lib/infect.c @@ -83,7 +83,7 @@ err: return ret; } -int compel_syscall(struct parasite_ctl *ctl, int nr, unsigned long *ret, +int compel_syscall(struct parasite_ctl *ctl, int nr, long *ret, unsigned long arg1, unsigned long arg2, unsigned long arg3, @@ -114,7 +114,7 @@ void *remote_mmap(struct parasite_ctl *ctl, void *addr, size_t length, int prot, int flags, int fd, off_t offset) { - unsigned long map; + long map; int err; err = compel_syscall(ctl, __NR_mmap, &map, -- cgit v1.2.3