Skip to content

include cleanups

Michael S. Tsirkin qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest20 patches 24 repliesIn review
  2. v167 patches 68 repliesSuperseded

Changes in v2 from the cover letter

drop patches not dealing with local headers
stop saying include through root works by accident -
it's not by accident, just not how we'd like code to look like
address comments by eric, philip, others

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20block: use local path for local headersblock/crypto.c block/nbd.c block/qcow.c +8 more+12 -122 replies
2/20crypto: use local path for local headerscrypto/block-luks.c crypto/block-luks.h crypto/block-qcow.c +13 more+23 -232 replies
3/20hppa: use local path for local headershw/hppa/hppa_sys.h hw/hppa/machine.c+2 -20 replies
4/20migration: drop an unused includeinclude/migration/vmstate.h migration/savevm.c+2 -11 reply
5/20trace: use local path for local headerstrace/control.h+1 -12 replies
6/20display: use local path for local headershw/display/bcm2835_fb.c+1 -10 replies
7/20ide: use local path for local headershw/ide/ahci-allwinner.c hw/ide/ahci.c hw/ide/ich.c+3 -31 reply
8/20ioapic: fix up includeshw/intc/ioapic.c+1 -21 reply
9/20e1000e: use local path for local headershw/net/e1000e.c+1 -11 reply
10/20rocker: drop an unused includehw/net/rocker/rocker_fp.c+0 -11 reply
11/20ppc: use local path for local headershw/ppc/ppc440_uc.c hw/ppc/sam460ex.c+3 -31 reply
12/20vhost-scsi: drop an unused includehw/scsi/vhost-scsi-common.c+0 -11 reply
13/20sd: fix up includehw/sd/milkymist-memcard.c+1 -11 reply
14/20usb: use local path for local headershw/usb/desc-msos.c hw/usb/desc.c hw/usb/dev-audio.c +10 more+13 -131 reply
15/20migration: use local path for local headersmigration/block-dirty-bitmap.c migration/page_cache.c migration/ram.c +1 more+5 -54 replies
16/20colo: use local path for local headersnet/colo-compare.c net/colo.c net/filter-rewriter.c+3 -31 reply
17/20qga: use local path for local headersqga/channel-posix.c qga/channel-win32.c qga/commands-posix.c +5 more+13 -130 replies
18/20trace: use local path for local headerstrace/qmp.c+1 -11 reply
19/20ui: use local path for local headersui/gtk.c ui/input-keymap.c ui/input-legacy.c +1 more+4 -40 replies
20/20arch_init: sort architecturesarch_init.c+8 -81 reply

Reviews trailers per patch

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

PatchPhilippe Mathieu-DaudéStefan HajnocziDavid GibsonZhang ChenJuan QuintelaEric BlakeLaszlo ErsekDaniel P. Berrangé
1/20R-b T-b R-b
2/20R-b T-b A-b
3/20R-b T-b
4/20R-b
5/20R-b T-b R-b T-b R-b R-b
6/20R-b T-b
7/20R-b T-b
8/20R-b T-b
9/20R-b T-b
10/20R-b T-b
11/20R-b T-b A-b
12/20R-b T-b
13/20R-b T-b
14/20R-b T-b
15/20R-b
16/20R-b T-b R-b
17/20R-b
18/20R-b T-b
19/20R-b
20/20R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/20] include cleanups

Right now, a local header can be included with either

#include "foo.h"
or
#include "dir/foo.h"

since the later doesn't tell you where the header is (in source or include directory), the former is preferable.

I intend to look for ways to prevent the second way from working, but that will take time. For now, fix all instances for the later way I could find.

In a couple of places I just dropped the include instead.

Finally, arch_init huge list of includes is sorted, which will be helpful in future cleanups.

This was part of the include path cleanup patchset
(https://lists.gnu.org/archive/html/qemu-devel/2018-05/msg00739.html).

Changes from v1
drop patches not dealing with local headers
stop saying include through root works by accident -
it's not by accident, just not how we'd like code to look like
address comments by eric, philip, others

Michael S. Tsirkin (20):
block: use local path for local headers
crypto: use local path for local headers
hppa: use local path for local headers
migration: drop an unused include
trace: use local path for local headers
display: use local path for local headers
ide: use local path for local headers
ioapic: fix up includes
e1000e: use local path for local headers
rocker: drop an unused include
ppc: use local path for local headers
vhost-scsi: drop an unused include
sd: fix up include
usb: use local path for local headers
migration: use local path for local headers
colo: use local path for local headers
qga: use local path for local headers
trace: use local path for local headers
ui: use local path for local headers
arch_init: sort architectures

 crypto/block-luks.h             |  2 +-
 crypto/block-qcow.h             |  2 +-
 crypto/ivgen-essiv.h            |  2 +-
 crypto/ivgen-plain.h            |  2 +-
 crypto/ivgen-plain64.h          |  2 +-
 hw/hppa/hppa_sys.h              |  2 +-
 include/migration/vmstate.h     |  2 +-
 trace/control.h                 |  2 +-
 arch_init.c                     | 16 ++++++++--------
 block/crypto.c                  |  2 +-
 block/nbd.c                     |  2 +-
 block/qcow.c                    |  2 +-
 block/qcow2-bitmap.c            |  2 +-
 block/qcow2-cluster.c           |  2 +-
 block/qcow2-refcount.c          |  2 +-
 block/qcow2-snapshot.c          |  2 +-
 block/qcow2.c                   |  4 ++--
 block/vhdx-endian.c             |  2 +-
 block/vhdx-log.c                |  2 +-
 block/vhdx.c                    |  2 +-
 crypto/block-luks.c             |  2 +-
 crypto/block-qcow.c             |  2 +-
 crypto/block.c                  |  6 +++---
 crypto/cipher.c                 |  6 +++---
 crypto/ivgen-essiv.c            |  2 +-
 crypto/ivgen-plain.c            |  2 +-
 crypto/ivgen-plain64.c          |  2 +-
 crypto/ivgen.c                  |  8 ++++----
 crypto/tlscreds.c               |  2 +-
 crypto/tlscredsanon.c           |  2 +-
 crypto/tlscredsx509.c           |  2 +-
 hw/display/bcm2835_fb.c         |  2 +-
 hw/hppa/machine.c               |  2 +-
 hw/ide/ahci-allwinner.c         |  2 +-
 hw/ide/ahci.c                   |  2 +-
 hw/ide/ich.c                    |  2 +-
 hw/intc/ioapic.c                |  3 +--
 hw/net/e1000e.c                 |  2 +-
 hw/net/rocker/rocker_fp.c       |  1 -
 hw/ppc/ppc440_uc.c              |  2 +-
 hw/ppc/sam460ex.c               |  4 ++--
 hw/scsi/vhost-scsi-common.c     |  1 -
 hw/sd/milkymist-memcard.c       |  2 +-
 hw/usb/desc-msos.c              |  2 +-
 hw/usb/desc.c                   |  2 +-
 hw/usb/dev-audio.c              |  2 +-
 hw/usb/dev-bluetooth.c          |  2 +-
 hw/usb/dev-hid.c                |  2 +-
 hw/usb/dev-hub.c                |  2 +-
 hw/usb/dev-mtp.c                |  2 +-
 hw/usb/dev-network.c            |  2 +-
 hw/usb/dev-serial.c             |  2 +-
 hw/usb/dev-smartcard-reader.c   |  2 +-
 hw/usb/dev-storage.c            |  2 +-
 hw/usb/dev-uas.c                |  2 +-
 hw/usb/dev-wacom.c              |  2 +-
 migration/block-dirty-bitmap.c  |  2 +-
 migration/page_cache.c          |  2 +-
 migration/ram.c                 |  4 ++--
 migration/savevm.c              |  1 +
 migration/vmstate.c             |  2 +-
 net/colo-compare.c              |  2 +-
 net/colo.c                      |  2 +-
 net/filter-rewriter.c           |  2 +-
 qga/channel-posix.c             |  2 +-
 qga/channel-win32.c             |  4 ++--
 qga/commands-posix.c            |  2 +-
 qga/commands-win32.c            |  4 ++--
 qga/commands.c                  |  2 +-
 qga/guest-agent-command-state.c |  2 +-
 qga/main.c                      |  4 ++--
 qga/vss-win32.c                 |  6 +++---
 trace/qmp.c                     |  2 +-
 ui/gtk.c                        |  2 +-
 ui/input-keymap.c               |  2 +-
 ui/input-legacy.c               |  2 +-
 ui/spice-input.c                |  2 +-
 77 files changed, 97 insertions(+), 99 deletions(-)
Signature · 1 line
MST