]> xenbits.xensource.com Git - mini-os.git/commitdiff
mman: correct m{,un}lock() definitions xen-4.19.0-rc4 xen-RELEASE-4.19.0
authorCharles Arnold <carnold@suse.com>
Tue, 25 Jun 2024 07:50:11 +0000 (09:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Jun 2024 07:50:11 +0000 (09:50 +0200)
gcc14 no longer (silently) accepts functions with no return type
specified.

Signed-off-by: Charles Arnold <carnold@suse.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/posix/sys/mman.h

index 4d349792b6f9e0444a822dbc4bc4f97dff01b883..69bba45b6c0c459ca36f058c2aa571fe70ba59b0 100644 (file)
@@ -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 */