From: Thomas Weißschuh Date: Tue, 28 Oct 2025 08:13:18 +0000 (+0100) Subject: tools/nolibc: remove outdated comment about __sysret() in mmap() X-Git-Tag: v6.19-rc1~194^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=089c0a9853ae6b297adf6e2f3b94e4f75dc1f97f;p=thirdparty%2Fkernel%2Flinux.git tools/nolibc: remove outdated comment about __sysret() in mmap() 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 --- diff --git a/tools/include/nolibc/sys/mman.h b/tools/include/nolibc/sys/mman.h index 5228751b458c8..77084ac3405a0 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) {