qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] Clean up includes
@ 2024-01-25 16:33 Peter Maydell
  2024-01-25 16:33 ` [PATCH 01/10] scripts/clean-includes: Update exclude list Peter Maydell
                   ` (10 more replies)
  0 siblings, 11 replies; 36+ messages in thread
From: Peter Maydell @ 2024-01-25 16:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

This series makes a bunch of automated edits with the clean-includes
script. The script performs three related cleanups:

 * Ensure .c files include qemu/osdep.h first.
 * Including it in a .h is redundant, since the .c  already includes
   it.  Drop such inclusions.
 * Likewise, including headers qemu/osdep.h includes is redundant.
   Drop these, too.

I created the series by looking at a run of the script across the
whole tree (./scripts/clean-includes --git includes --all) produces,
and then disentangling that into (a) different cohesive parts and (b)
files that needed to go into the script's exclude-list.

After this series, the tree is still not entirely clean -- there
are 20 other files the script wants to change. But at least some
of them are things that should be on the exclude list, and some
are things which I didn't feel like taking the time to try to
decide whether they should be fixed or excluded. I might come
back to these at some later date, but I figured this series was
enough to be going on with.

thanks
-- PMM

Peter Maydell (10):
  scripts/clean-includes: Update exclude list
  hyperv: Clean up includes
  disas/riscv: Clean up includes
  aspeed: Clean up includes
  acpi: Clean up includes
  m68k: Clean up includes
  include: Clean up includes
  cxl: Clean up includes
  riscv: Clean up includes
  misc: Clean up includes

 disas/riscv.h                             | 1 -
 hw/arm/aspeed_eeprom.h                    | 1 -
 hw/hyperv/hv-balloon-internal.h           | 1 -
 hw/hyperv/hv-balloon-our_range_memslots.h | 1 -
 hw/hyperv/hv-balloon-page_range_tree.h    | 1 -
 include/hw/arm/raspberrypi-fw-defs.h      | 1 -
 include/hw/audio/asc.h                    | 1 -
 include/hw/m68k/q800-glue.h               | 1 -
 include/hw/mem/memory-device.h            | 1 -
 include/hw/nvram/fw_cfg_acpi.h            | 1 -
 include/hw/ppc/spapr_nested.h             | 1 -
 include/hw/virtio/virtio-acpi.h           | 1 -
 include/hw/xen/xen-hvm-common.h           | 1 -
 include/qemu/qtree.h                      | 1 -
 include/ui/rect.h                         | 2 --
 target/riscv/vector_internals.h           | 1 -
 tests/qtest/qtest_aspeed.h                | 2 --
 audio/pwaudio.c                           | 1 -
 disas/riscv-xthead.c                      | 1 +
 disas/riscv-xventana.c                    | 1 +
 hw/arm/aspeed_eeprom.c                    | 1 +
 hw/cxl/cxl-events.c                       | 4 +---
 hw/hyperv/hv-balloon-our_range_memslots.c | 1 +
 hw/hyperv/hv-balloon-page_range_tree.c    | 1 +
 hw/hyperv/hv-balloon.c                    | 1 +
 hw/nvram/fw_cfg-acpi.c                    | 1 +
 hw/virtio/virtio-acpi.c                   | 1 +
 net/af-xdp.c                              | 1 -
 plugins/core.c                            | 1 -
 plugins/loader.c                          | 1 -
 target/riscv/vector_internals.c           | 1 +
 util/userfaultfd.c                        | 1 -
 scripts/clean-includes                    | 2 +-
 33 files changed, 11 insertions(+), 28 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2024-01-31 23:45 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-25 16:33 [PATCH 00/10] Clean up includes Peter Maydell
2024-01-25 16:33 ` [PATCH 01/10] scripts/clean-includes: Update exclude list Peter Maydell
2024-01-25 16:34 ` [PATCH 02/10] hyperv: Clean up includes Peter Maydell
2024-01-26 15:45   ` Zhao Liu
2024-01-27  5:04   ` Richard Henderson
2024-01-25 16:34 ` [PATCH 03/10] disas/riscv: " Peter Maydell
2024-01-25 16:59   ` Philippe Mathieu-Daudé
2024-01-26 15:44   ` Zhao Liu
2024-01-27  5:05   ` Richard Henderson
2024-01-31 23:43   ` Alistair Francis
2024-01-25 16:34 ` [PATCH 04/10] aspeed: " Peter Maydell
2024-01-25 16:59   ` Philippe Mathieu-Daudé
2024-01-26 15:39   ` Zhao Liu
2024-01-26 15:38     ` Peter Maydell
2024-01-27  5:05   ` Richard Henderson
2024-01-25 16:34 ` [PATCH 05/10] acpi: " Peter Maydell
2024-01-25 17:01   ` Philippe Mathieu-Daudé
2024-01-26 15:40   ` Zhao Liu
2024-01-27  5:06   ` Richard Henderson
2024-01-25 16:34 ` [PATCH 06/10] m68k: " Peter Maydell
2024-01-25 17:00   ` Philippe Mathieu-Daudé
2024-01-26 15:43   ` Thomas Huth
2024-01-26 15:44   ` Zhao Liu
2024-01-25 16:34 ` [PATCH 07/10] include: " Peter Maydell
2024-01-26 15:43   ` Zhao Liu
2024-01-25 16:34 ` [PATCH 08/10] cxl: " Peter Maydell
2024-01-25 17:00   ` Philippe Mathieu-Daudé
2024-01-26 15:41   ` Zhao Liu
2024-01-29 10:35   ` Jonathan Cameron via
2024-01-25 16:34 ` [PATCH 09/10] riscv: " Peter Maydell
2024-01-25 17:00   ` Philippe Mathieu-Daudé
2024-01-26 15:41   ` Zhao Liu
2024-01-30  0:43   ` Alistair Francis
2024-01-25 16:34 ` [PATCH 10/10] misc: " Peter Maydell
2024-01-26 15:47   ` Zhao Liu
2024-01-27  5:53 ` [PATCH 00/10] " Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).