summary refs log tree commit diff stats
path: root/system/physmem.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-17 17:13:29 +0100
committerRichard Henderson <richard.henderson@linaro.org>2025-04-23 14:08:29 -0700
commitd4c9cab37fa440807a4f2bf87efd0511d5694b2c (patch)
tree039eaf4b151d5225675682a50c915740205c3401 /system/physmem.c
parent261a0303ae4770cadaf02ec21da9b5e60076cd43 (diff)
downloadfocaccia-qemu-d4c9cab37fa440807a4f2bf87efd0511d5694b2c.tar.gz
focaccia-qemu-d4c9cab37fa440807a4f2bf87efd0511d5694b2c.zip
exec: Restrict memory-internal.h to system/
Only file units within the system/ directory need access to
"memory-internal.h". Restrict its scope by moving it there.

The comment from commit 9d70618c684 ("memory-internal.h:
Remove obsolete claim that header is obsolete") is now obsolete,
remove it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250317161329.40300-3-philmd@linaro.org>
Diffstat (limited to 'system/physmem.c')
-rw-r--r--system/physmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/physmem.c b/system/physmem.c
index 307d0764b6..16cf557d1a 100644
--- a/system/physmem.c
+++ b/system/physmem.c
@@ -66,7 +66,6 @@
 #include "qemu/main-loop.h"
 #include "system/replay.h"
 
-#include "exec/memory-internal.h"
 #include "system/ram_addr.h"
 
 #include "qemu/pmem.h"
@@ -88,6 +87,8 @@
 #include <daxctl/libdaxctl.h>
 #endif
 
+#include "memory-internal.h"
+
 //#define DEBUG_SUBPAGE
 
 /* ram_list is read under rcu_read_lock()/rcu_read_unlock().  Writes