mbox series

[v3,0/3] hw/core: Cleanup and reorder headers

Message ID 20240311075621.3224684-1-zhao1.liu@linux.intel.com (mailing list archive)
Headers show
Series hw/core: Cleanup and reorder headers | expand

Message

Zhao Liu March 11, 2024, 7:56 a.m. UTC
From: Zhao Liu <zhao1.liu@intel.com>

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/20240116074647.3644821-1-zhao1.liu@linux.intel.com/
v1: https://lore.kernel.org/qemu-devel/20240115094852.3597165-1-zhao1.liu@linux.intel.com/

---
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(-)

Comments

Philippe Mathieu-Daudé March 11, 2024, 11:40 a.m. UTC | #1
On 11/3/24 08:56, Zhao Liu wrote:

> ---
> 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

Thanks, series queued.