mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
a30d551f34
commit
8b53e83b08
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue