From 0efb0f55b3d433d2ed890bc42e78331a39a4c7a7 Mon Sep 17 00:00:00 2001 From: Rodrigo Cataldo Date: Tue, 6 Dec 2022 23:09:44 +0100 Subject: [PATCH] drivers: ivshmem: msi.h header only required for ivshmem-doorbell Only include the MSI header when ivshmem-doorbell is employed, as the ivshmem data structures already use the same protection for msi-related structures. Signed-off-by: Rodrigo Cataldo Co-authored-by: Henri Xavier --- drivers/virtualization/virt_ivshmem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/virtualization/virt_ivshmem.h b/drivers/virtualization/virt_ivshmem.h index aa55ac7bc92..3d25afad25a 100644 --- a/drivers/virtualization/virt_ivshmem.h +++ b/drivers/virtualization/virt_ivshmem.h @@ -8,7 +8,10 @@ #define ZEPHYR_DRIVERS_VIRTUALIZATION_VIRT_IVSHMEM_H_ #include + +#ifdef CONFIG_IVSHMEM_DOORBELL #include +#endif #define IVSHMEM_PCIE_REG_BAR_IDX 0 #define IVSHMEM_PCIE_SHMEM_BAR_IDX 2