From 94d726597662d7656d8d6fafbb63f2c5ed220ac9 Mon Sep 17 00:00:00 2001 From: Jerin Jacob Date: Wed, 17 Oct 2018 05:30:28 +0000 Subject: [PATCH] vfio: fix missing header inclusion The following change set introduces HAVE_VFIO_DEV_REQ_INTERFACE and used in the below files. drivers/bus/pci/linux/pci_vfio.c drivers/bus/pci/pci_common.c lib/librte_eal/linuxapp/eal/eal_interrupts.c However, Except the first file, the change missed to include where HAVE_VFIO_DEV_REQ_INTERFACE defined. This creates runtime following error on vfio-pci mode and kernel >= 4.0.0 combination. EAL: [rte_intr_enable] Unknown handle type of fd 95 EAL: [pci_vfio_enable_notifier]Fail to enable req notifier. EAL: Fail to unregister req notifier handler. EAL: Error setting up notifier! EAL: Requested device 0000:07:00.1 cannot be used Fixes: cda94419964f ("vfio: fix build with Linux < 4.0") Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh --- drivers/bus/pci/pci_common.c | 1 + lib/librte_eal/linuxapp/eal/eal_interrupts.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c index 4b3749a9a1..c0238d444b 100644 --- a/drivers/bus/pci/pci_common.c +++ b/drivers/bus/pci/pci_common.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "private.h" diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 767b508804..39252a887f 100644 --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "eal_private.h" #include "eal_vfio.h" -- 2.20.1