From: Nicolas Dichtel Date: Wed, 20 Feb 2013 08:56:56 +0000 (+0100) Subject: igb_uio: fix build with kernel >= 3.8 X-Git-Tag: spdx-start~11287 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f454d1a9c94da88921efeb193d0c1d3126f3d368;p=dpdk.git igb_uio: fix build with kernel >= 3.8 __devinit has been removed in linux commit 54b956b903 ("Remove __dev* markings from init.h", 3.8-rc4). Signed-off-by: Nicolas Dichtel Acked-by: Ivan Boule Acked-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 51dd153bac..a033c4c560 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -284,7 +284,11 @@ igbuio_pci_release_iomem(struct uio_info *info) } } +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0) static int __devinit +#else +static int +#endif igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) { struct rte_uio_pci_dev *udev;