diff --git a/src/mmap_hook.cc b/src/mmap_hook.cc index 0b9aa08..c26c647 100644 --- a/src/mmap_hook.cc +++ b/src/mmap_hook.cc @@ -223,7 +223,8 @@ static void* do_mmap(void* start, size_t length, int prot, int flags, int fd, in #ifdef DEFINED_DO_MMAP -static void* do_mmap_with_hooks(void* start, size_t length, int prot, int flags, int fd, int64_t offset) { +static inline ATTRIBUTE_ALWAYS_INLINE +void* do_mmap_with_hooks(void* start, size_t length, int prot, int flags, int fd, int64_t offset) { void* result = do_mmap(start, length, prot, flags, fd, offset); if (result == MAP_FAILED) { return result;