]> git.proxmox.com Git - mirror_qemu.git/commit
include: Move qemu_madvise() and related #defines to new qemu/madvise.h
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 8 Feb 2022 20:08:52 +0000 (20:08 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Feb 2022 13:30:20 +0000 (13:30 +0000)
commitb85ea5fa2f0bc281b9700a51ba69aebcc76b108c
tree62c15b9d0feb0c989502f796cd759ec98e0dfc16
parent542e87c7a2d90076b07611987fd3d789865e5ea1
include: Move qemu_madvise() and related #defines to new qemu/madvise.h

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 <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220208200856.3558249-2-peter.maydell@linaro.org
12 files changed:
backends/hostmem-file.c
backends/hostmem.c
hw/virtio/virtio-balloon.c
include/qemu/madvise.h [new file with mode: 0644]
include/qemu/osdep.h
migration/postcopy-ram.c
migration/qemu-file.c
migration/ram.c
softmmu/physmem.c
tcg/region.c
util/osdep.c
util/oslib-posix.c