From: Hemant Agrawal Date: Sun, 8 Oct 2017 09:17:32 +0000 (+0530) Subject: igb_uio: fix build on arm64 kernel X-Git-Tag: spdx-start~1711 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e1a45fc4945fd83528b03a6a23d817860994a2b8;p=dpdk.git igb_uio: fix build on arm64 kernel IGB_UIO compilation recently got enabled for ARM64 by default The igb_uio compilation against ARM64 based stock 4.x (e.g. 4.13) kernel is giving compilation warnings: igb_uio.c: In function ‘igbuio_pci_irqcontrol’: igb_uio.c:115:25: error: implicit declaration of function ‘irq_get_irq_dat ’ [-Werror=implicit-function-declaration] struct irq_data *irq = irq_get_irq_data(udev->info.irq); ^ igb_uio.c:115:25: error: initialization makes pointer from integer without a cast [-Werror=int-conversion] Fixes: d196343a258e ("igb_uio: use kernel functions for masking MSI-X") Signed-off-by: Hemant Agrawal Tested-by: Santosh Shukla --- diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index a440924bcc..da71e052f2 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include