qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 09/11] hw/virtio: Remove unnecessary 'virtio-access.h' header


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 09/11] hw/virtio: Remove unnecessary 'virtio-access.h' header
Date: Wed, 24 May 2023 09:38:11 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 24/5/23 09:29, Thomas Huth wrote:
On 23/05/2023 18.35, Philippe Mathieu-Daudé wrote:
None of these files use the VirtIO Load/Store API declared
by "hw/virtio/virtio-access.h". This header probably crept
in via copy/pasting, remove it.

Note, "virtio-access.h" is target-specific, so any file
including it also become tainted as target-specific.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  hw/block/dataplane/virtio-blk.c | 1 -
  hw/s390x/virtio-ccw.c           | 1 -
  hw/scsi/vhost-scsi.c            | 1 -
  hw/scsi/vhost-user-scsi.c       | 1 -
  hw/scsi/virtio-scsi-dataplane.c | 1 -
  hw/virtio/vdpa-dev.c            | 1 -
  hw/virtio/vhost-vdpa.c          | 1 -
  hw/virtio/vhost-vsock-common.c  | 1 -
  hw/virtio/vhost.c               | 1 -
  hw/virtio/virtio-crypto.c       | 1 -
  hw/virtio/virtio-iommu.c        | 1 -
  hw/virtio/virtio-mem.c          | 1 -
  12 files changed, 12 deletions(-)

Very good catch! I checked that it compiles and links fine with this change, so:

Tested-by: Thomas Huth <thuth@redhat.com>

Thanks, FYI this list was built doing:

  $ git grep -l virtio-access.h \
    | xargs git grep -LE 'virtio_(st|ld)' \
    | xargs git grep virtio-access.h

(I don't think the command is relevant enough to include in the
 commit description, but can amend it)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]