Skip to content

Commit d5c0be1

Browse files
philmdlegoater
authored andcommitted
hw/vfio: Compile iommufd.c once
Removing unused "exec/ram_addr.h" header allow to compile iommufd.c once for all targets. Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Pierrick Bouvier <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Reviewed-by: Eric Auger <[email protected]> Message-Id: <[email protected]> Link: https://lore.kernel.org/qemu-devel/[email protected] Signed-off-by: Cédric Le Goater <[email protected]>
1 parent 761d63c commit d5c0be1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hw/vfio/iommufd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "qemu/cutils.h"
2626
#include "qemu/chardev_open.h"
2727
#include "pci.h"
28-
#include "exec/ram_addr.h"
2928

3029
static int iommufd_cdev_map(const VFIOContainerBase *bcontainer, hwaddr iova,
3130
ram_addr_t size, void *vaddr, bool readonly)

hw/vfio/meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ vfio_ss.add(files(
44
'container.c',
55
))
66
vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
7-
vfio_ss.add(when: 'CONFIG_IOMMUFD', if_true: files(
8-
'iommufd.c',
9-
))
107
vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
118
'display.c',
129
'pci-quirks.c',
@@ -28,3 +25,6 @@ system_ss.add(when: 'CONFIG_VFIO', if_true: files(
2825
'migration-multifd.c',
2926
'cpr.c',
3027
))
28+
system_ss.add(when: ['CONFIG_VFIO', 'CONFIG_IOMMUFD'], if_true: files(
29+
'iommufd.c',
30+
))

0 commit comments

Comments
 (0)