]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec: Restrict memory-internal.h to system/
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 17 Mar 2025 16:13:29 +0000 (17:13 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 23 Apr 2025 21:08:29 +0000 (14:08 -0700)
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>

MAINTAINERS
system/memory-internal.h [moved from include/exec/memory-internal.h with 88% similarity]
system/memory.c
system/physmem.c

index ba885010c52855bbe7768bc9b1d82456ea0a760d..661a47db5acc18addd16c2433ba3b623b45a5de8 100644 (file)
@@ -3129,7 +3129,7 @@ F: system/ioport.c
 F: system/memory.c
 F: system/memory_mapping.c
 F: system/physmem.c
-F: include/exec/memory-internal.h
+F: system/memory-internal.h
 F: scripts/coccinelle/memory-region-housekeeping.cocci
 
 Memory devices
similarity index 88%
rename from include/exec/memory-internal.h
rename to system/memory-internal.h
index c75178a3d6b63a3545fd4ff89f4d9ab2acdc6fee..085e81a9fe44828441d818276b7909fa4534bbe4 100644 (file)
  *
  */
 
-/*
- * This header is for use by exec.c, memory.c and accel/tcg/cputlb.c ONLY,
- * for declarations which are shared between the memory subsystem's
- * internals and the TCG TLB code. Do not include it from elsewhere.
- */
-
 #ifndef MEMORY_INTERNAL_H
 #define MEMORY_INTERNAL_H
 
index 6a5d8530716e493b09598f2e8b189db5b7f65638..7e2f16f4e954bf37a96831d26373e1a502323807 100644 (file)
@@ -24,8 +24,6 @@
 #include "qemu/qemu-print.h"
 #include "qom/object.h"
 #include "trace.h"
-
-#include "exec/memory-internal.h"
 #include "system/ram_addr.h"
 #include "system/kvm.h"
 #include "system/runstate.h"
@@ -35,6 +33,8 @@
 #include "migration/vmstate.h"
 #include "system/address-spaces.h"
 
+#include "memory-internal.h"
+
 //#define DEBUG_UNASSIGNED
 
 static unsigned memory_region_transaction_depth;
index 307d0764b6d8c0ae107f283ff846f8cc2986a787..16cf557d1a11a1f107889d43bb576696254b625f 100644 (file)
@@ -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