On 2/9/22 07:08, Peter Maydell wrote:
The function qemu_madvise() and the QEMU_MADV_* constants associated
with it are used in only 10 files.  Move them out of osdep.h to a new
qemu/madvise.h header that is included where it is needed.

Signed-off-by: Peter Maydell<[email protected]>
---
  include/qemu/madvise.h     | 95 ++++++++++++++++++++++++++++++++++++++
  include/qemu/osdep.h       | 82 --------------------------------
  backends/hostmem-file.c    |  1 +
  backends/hostmem.c         |  1 +
  hw/virtio/virtio-balloon.c |  1 +
  migration/postcopy-ram.c   |  1 +
  migration/qemu-file.c      |  1 +
  migration/ram.c            |  1 +
  softmmu/physmem.c          |  1 +
  tcg/region.c               |  1 +
  util/osdep.c               |  1 +
  util/oslib-posix.c         |  1 +
  12 files changed, 105 insertions(+), 82 deletions(-)
  create mode 100644 include/qemu/madvise.h

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

r~

Reply via email to