From: Thomas Monjalon Date: Wed, 23 Jul 2014 08:06:32 +0000 (+0200) Subject: igb_uio: fix build with kernel older than 2.6.34 X-Git-Tag: spdx-start~10482 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=282e1ec8570cb021c3f85cff9fced40e6c2d74d2;p=dpdk.git 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 --- 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;