Message ID | 20250502214551.80401-6-philmd@linaro.org |
---|---|
State | New |
Headers | show |
Series | hw/virtio: Build virtio-mem.c once | expand |
On 5/2/25 2:45 PM, Philippe Mathieu-Daudé wrote: > Remove unused "system/ram_addr.h" header. This file doesn't > use any target specific definitions anymore, compile it once > by moving it to system_virtio_ss[]. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > Reviewed-by: David Hildenbrand <david@redhat.com> > --- > hw/virtio/virtio-mem.c | 1 - > hw/virtio/meson.build | 2 +- > 2 files changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
On 02.05.25 23:45, Philippe Mathieu-Daudé wrote: > Remove unused "system/ram_addr.h" header. This file doesn't > use any target specific definitions anymore, compile it once > by moving it to system_virtio_ss[]. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > Reviewed-by: David Hildenbrand <david@redhat.com> > --- Acked-by: David Hildenbrand <david@redhat.com>
diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c index 4234396f774..f4882c6901b 100644 --- a/hw/virtio/virtio-mem.c +++ b/hw/virtio/virtio-mem.c @@ -25,7 +25,6 @@ #include "hw/virtio/virtio-mem.h" #include "qapi/error.h" #include "qapi/visitor.h" -#include "system/ram_addr.h" #include "migration/misc.h" #include "hw/boards.h" #include "hw/qdev-properties.h" diff --git a/hw/virtio/meson.build b/hw/virtio/meson.build index 164f6fd995a..525679954ee 100644 --- a/hw/virtio/meson.build +++ b/hw/virtio/meson.build @@ -56,7 +56,7 @@ specific_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock.c specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vhost-user-vsock.c')) specific_virtio_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-rng.c')) specific_virtio_ss.add(when: 'CONFIG_VIRTIO_NSM', if_true: [files('virtio-nsm.c', 'cbor-helpers.c'), libcbor]) -specific_virtio_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-mem.c')) +system_virtio_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-mem.c')) specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_SCMI', if_true: files('vhost-user-scmi.c')) specific_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_SCMI'], if_true: files('vhost-user-scmi-pci.c'))