On 6/16/26 08:37, Philippe Mathieu-Daudé wrote:
This header is only used when building system units,
checking for CONFIG_USER_ONLY is pointless.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
  system/memory-internal.h | 2 --
  1 file changed, 2 deletions(-)

diff --git a/system/memory-internal.h b/system/memory-internal.h
index 0066ffdffb6..c7573a68b5e 100644
--- a/system/memory-internal.h
+++ b/system/memory-internal.h
@@ -14,7 +14,6 @@
  #ifndef MEMORY_INTERNAL_H
  #define MEMORY_INTERNAL_H
-#ifndef CONFIG_USER_ONLY
  static inline AddressSpaceDispatch *flatview_to_dispatch(FlatView *fv)
  {
      return fv->dispatch;
@@ -57,4 +56,3 @@ static inline MemOp devend_memop(enum device_endian end)
  }
#endif
-#endif

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to