Skip to content

Commit

Permalink
exec/ram_addr: Include missing 'exec/hwaddr.h' and 'exec/cpu-common.h'
Browse files Browse the repository at this point in the history
'hwaddr' is defined in "exec/hwaddr.h", 'ram_addr_t' in
"exec/cpu-common.h". Include these headers in order to
avoid when refactoring unrelated headers:

  In file included from ../../hw/s390x/s390-virtio-ccw.c:17:
  include/sysemu/physmem-target.h:37:24: error: unknown type name 'hwaddr'
     37 |     (MemoryRegion *mr, hwaddr offset, hwaddr length, unsigned client);
        |                        ^
  In file included from ../../hw/s390x/s390-virtio-ccw.c:16:
  include/exec/ram_addr.h:52:36: error: unknown type name 'ram_addr_t'
     52 | RAMBlock *qemu_ram_alloc_from_file(ram_addr_t size, MemoryRegion *mr,
        |                                    ^

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
philmd committed Dec 20, 2024
1 parent a6b3f53 commit 975cb16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/exec/ram_addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#include "exec/exec-all.h"
#include "qemu/rcu.h"

#include "exec/hwaddr.h"
#include "exec/cpu-common.h"

extern uint64_t total_dirty_pages;

/**
Expand Down

0 comments on commit 975cb16

Please sign in to comment.