提交 8b53e83b 编写于 作者: W Willy Tarreau 提交者: Paul E. McKenney

tools/nolibc: fix build warning in sys_mmap() when my_syscall6 is not defined

We return -ENOSYS when there's no syscall6() operation, but we must cast
it to void* to avoid a warning.
Signed-off-by: NWilly Tarreau <w@1wt.eu>
Signed-off-by: NPaul E. McKenney <paulmck@kernel.org>
上级 a30d551f
......@@ -692,7 +692,7 @@ void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd,
{
#ifndef my_syscall6
/* Function not implemented. */
return -ENOSYS;
return (void *)-ENOSYS;
#else
int n;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册