mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-29 02:14:14 +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
|
#ifndef my_syscall6
|
||||||
/* Function not implemented. */
|
/* Function not implemented. */
|
||||||
return -ENOSYS;
|
return (void *)-ENOSYS;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
int n;
|
int n;
|
||||||
|
|
Loading…
Add table
Reference in a new issue