summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorPeter Maydell2022-02-08 21:08:53 +0100
committerPeter Maydell2022-02-21 14:30:20 +0100
commitf2241d16eaa142b4092b11ace48f2a0472bf4ad6 (patch)
treec9054274241f849364296f27cc04578bb22fd7a6 /util
parentinclude: Move qemu_madvise() and related #defines to new qemu/madvise.h (diff)
downloadqemu-f2241d16eaa142b4092b11ace48f2a0472bf4ad6.tar.gz
qemu-f2241d16eaa142b4092b11ace48f2a0472bf4ad6.tar.xz
qemu-f2241d16eaa142b4092b11ace48f2a0472bf4ad6.zip
include: Move qemu_mprotect_*() to new qemu/mprotect.h
The qemu_mprotect_*() family of functions are used in very few files; move them from osdep.h to a new qemu/mprotect.h. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220208200856.3558249-3-peter.maydell@linaro.org
Diffstat (limited to 'util')
-rw-r--r--util/osdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/osdep.c b/util/osdep.c
index 8c5cd6e431..5181f86b82 100644
--- a/util/osdep.c
+++ b/util/osdep.c
@@ -39,6 +39,7 @@ extern int madvise(char *, size_t, int);
#include "qemu/sockets.h"
#include "qemu/error-report.h"
#include "qemu/madvise.h"
+#include "qemu/mprotect.h"
#include "monitor/monitor.h"
static bool fips_enabled = false;