From: Charles Arnold Date: Tue, 25 Jun 2024 07:50:11 +0000 (+0200) Subject: mman: correct m{,un}lock() definitions X-Git-Tag: xen-4.19.0-rc4^0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8b038c7411ae7e823eaf6d15d5efbe037a07197a;p=mini-os.git mman: correct m{,un}lock() definitions gcc14 no longer (silently) accepts functions with no return type specified. Signed-off-by: Charles Arnold Signed-off-by: Jan Beulich Reviewed-by: Samuel Thibault --- diff --git a/include/posix/sys/mman.h b/include/posix/sys/mman.h index 4d34979..69bba45 100644 --- a/include/posix/sys/mman.h +++ b/include/posix/sys/mman.h @@ -16,7 +16,7 @@ void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset) asm("mmap64"); int munmap(void *start, size_t length); -static inline mlock(const void *addr, size_t len) { return 0; } -static inline munlock(const void *addr, size_t len) { return 0; } +static inline int mlock(const void *addr, size_t len) { return 0; } +static inline int munlock(const void *addr, size_t len) { return 0; } #endif /* _POSIX_SYS_MMAN_H */