Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/qemu/osdep.h | 6 +-----
util/osdep.c | 5 +++++
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index cf8d7cf7e61..fd714014eaf 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -763,14 +763,10 @@ bool qemu_finish_async_prealloc_mem(Error **errp);
*/
char *qemu_get_pid_name(pid_t pid);
+uintptr_t qemu_real_host_page_size(void);
/* Using intptr_t ensures that qemu_*_page_mask is sign-extended even
* when intptr_t is 32-bit and we are aligning a long long.
*/
-static inline uintptr_t qemu_real_host_page_size(void)
-{
- return getpagesize();
-}
-
static inline intptr_t qemu_real_host_page_mask(void)
{
return -(intptr_t)qemu_real_host_page_size();
diff --git a/util/osdep.c b/util/osdep.c
index 770369831bc..44fad13dcc7 100644
--- a/util/osdep.c
+++ b/util/osdep.c
@@ -613,3 +613,8 @@ int qemu_fdatasync(int fd)
return fsync(fd);
#endif
}
+
+uintptr_t qemu_real_host_page_size(void)
+{
+ return getpagesize();
+}
--
2.51.0