From: Zhao Liu <[email protected]>
Identify unused headers by full compilation (tested by "./configure" and
then "make") and manually checking if it is a direct inclusion.
Then reorder headers in alphabetical order.
In addition, update a file entry in MAINTAINERS file.
---
Changelog:
v1: Per Peter and Philippe's comments in v1, keep directly included
headers to avoid implicit header inclusions [1].
[1]:
https://lore.kernel.org/qemu-devel/[email protected]/#t
---
Zhao Liu (9):
MAINTAINERS: Update hw/core/cpu.c entry
hw/core: Cleanup unused included headers in cpu-common.c
hw/core: Reorder included headers in cpu-common.c
hw/core: Reorder included headers in cpu-sysemu.c
hw/core: Cleanup unused included header in machine-qmp-cmds.c
hw/core: Reorder included header in machine.c
hw/core: Reorder included headers in null-machine.c
hw/core: Cleanup unused included headers in numa.c
hw/core: Reorder included headers in numa.c
MAINTAINERS | 3 ++-
hw/core/cpu-common.c | 17 +++++++----------
hw/core/cpu-sysemu.c | 3 ++-
hw/core/machine-qmp-cmds.c | 2 +-
hw/core/machine.c | 21 +++++++++++----------
hw/core/null-machine.c | 5 +++--
hw/core/numa.c | 22 ++++++++++------------
7 files changed, 36 insertions(+), 37 deletions(-)
--
2.34.1