Skip to content

hw/core: Cleanup and reorder headers

Zhao Liu qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 8 repliesIn review
  2. v29 patches 1 replySuperseded
  3. v111 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* Dropped the reorder patches since QEMU has no (alphabetical) order requirement for included headers.
* Re-included hw/core/cpu.h in hw/core/numa.c since CPU_UNSET_NUMA_NODE_ID is defined in this header.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/core: Cleanup unused included headers in cpu-common.chw/core/cpu-common.c+0 -45 replies
2/3hw/core: Cleanup unused included header in machine-qmp-cmds.chw/core/machine-qmp-cmds.c+0 -11 reply
3/3hw/core: Cleanup unused included headers in numa.chw/core/numa.c+0 -21 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] hw/core: Cleanup and reorder headers

From: Zhao Liu <[email protected]>

Hi list,

This is the v3 based on the commit 7489f7f3f81d ("Merge tag 'hw-misc- 20240309' of https://github.com/philmd/qemu into staging")

This series identifies unused headers by manually checking item (of headers) calls in .c files, and is tested by full compilation (tested by "./configure" and then "make").

Thanks and Best Regards,
Zhao

---
Changelog:

Changes since v2:
* Dropped the reorder patches since QEMU has no (alphabetical) order requirement for included headers.
* Re-included hw/core/cpu.h in hw/core/numa.c since CPU_UNSET_NUMA_NODE_ID is defined in this header.

Changes since v1:
* Per Peter and Philippe's comments in v1, kept directly included headers to avoid implicit header inclusions.

v2: https://lore.kernel.org/qemu-devel/[email protected]/
v1: https://lore.kernel.org/qemu-devel/[email protected]/

---
Zhao Liu (3):
hw/core: Cleanup unused included headers in cpu-common.c hw/core: Cleanup unused included header in machine-qmp-cmds.c hw/core: Cleanup unused included headers in numa.c

 hw/core/cpu-common.c       | 4 ----
 hw/core/machine-qmp-cmds.c | 1 -
 hw/core/numa.c             | 2 --
 3 files changed, 7 deletions(-)
Signature · 1 line
2.34.1