summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/sys/mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/nolibc/sys/mman.h')
-rw-r--r--tools/include/nolibc/sys/mman.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/include/nolibc/sys/mman.h b/tools/include/nolibc/sys/mman.h
index 5228751b458c..77084ac3405a 100644
--- a/tools/include/nolibc/sys/mman.h
+++ b/tools/include/nolibc/sys/mman.h
@@ -31,11 +31,6 @@ void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd,
}
#endif
-/* Note that on Linux, MAP_FAILED is -1 so we can use the generic __sysret()
- * which returns -1 upon error and still satisfy user land that checks for
- * MAP_FAILED.
- */
-
static __attribute__((unused))
void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset)
{