]> Gentwo Git Trees - linux/.git/commitdiff
tools/nolibc: remove outdated comment about __sysret() in mmap()
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 28 Oct 2025 08:13:18 +0000 (09:13 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Wed, 29 Oct 2025 15:29:12 +0000 (16:29 +0100)
Since commit fb01ff635efd ("tools/nolibc: keep brk(), sbrk(), mmap()
away from __sysret()") the implementation of mmap() does not use the
__sysret() macro anymore.

Remove the outdated comment.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/sys/mman.h

index 5228751b458c8d8a1bdfb5006623d016a48155fb..77084ac3405a03db11813e27bc876f6e046c7f11 100644 (file)
@@ -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)
 {