From 282e1ec8570cb021c3f85cff9fced40e6c2d74d2 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Wed, 23 Jul 2014 10:06:32 +0200 Subject: [PATCH] igb_uio: fix build with kernel older than 2.6.34 There was a missing brace in commit 819fc2fe2ad99 (dont wrap pci_num_vf function needlessly). Signed-off-by: Thomas Monjalon --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index f220a12b50..42c4fc97e1 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -72,6 +72,7 @@ igbuio_get_uio_pci_dev(struct uio_info *info) /* sriov sysfs */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34) static int pci_num_vf(struct pci_dev *dev) +{ struct iov { int pos; int nres; -- 2.20.1