projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a30d551
)
tools/nolibc: fix build warning in sys_mmap() when my_syscall6 is not defined
author
Willy Tarreau
<w@1wt.eu>
Tue, 19 Jul 2022 21:44:33 +0000
(23:44 +0200)
committer
Paul E. McKenney
<paulmck@kernel.org>
Wed, 31 Aug 2022 12:17:43 +0000
(
05:17
-0700)
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>
tools/include/nolibc/sys.h
patch
|
blob
|
history
diff --git
a/tools/include/nolibc/sys.h
b/tools/include/nolibc/sys.h
index 08491070387bc03ba24ba155d68a70583724c058..b8c96878c9ce0b4f0aa468611a400d2108c861a8 100644
(file)
--- a/
tools/include/nolibc/sys.h
+++ b/
tools/include/nolibc/sys.h
@@
-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;