From: Maxime Coquelin Date: Fri, 2 Oct 2020 07:54:00 +0000 (+0200) Subject: vdpa/ifc: fix build with recent kernels X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4e1b5092ad1ce3e3bd66eb20a9976d027e424b0a;p=dpdk.git vdpa/ifc: fix build with recent kernels VIRTIO_F_IOMMU_PLATFORM is now defined in recent kernel headers, causing build issue. Let's define it in the IFC vDPA driver only if it wasn't already. Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") Cc: stable@dpdk.org Reported-by: Brandon Lo Signed-off-by: Maxime Coquelin Acked-by: David Marchand --- diff --git a/drivers/vdpa/ifc/base/ifcvf.h b/drivers/vdpa/ifc/base/ifcvf.h index a288ce57dc..573a35ffb4 100644 --- a/drivers/vdpa/ifc/base/ifcvf.h +++ b/drivers/vdpa/ifc/base/ifcvf.h @@ -13,7 +13,10 @@ #define IFCVF_SUBSYS_DEVICE_ID 0x001A #define IFCVF_MAX_QUEUES 1 + +#ifndef VIRTIO_F_IOMMU_PLATFORM #define VIRTIO_F_IOMMU_PLATFORM 33 +#endif /* Common configuration */ #define IFCVF_PCI_CAP_COMMON_CFG 1