igb_uio: fix build with kernel <= 3.17
authorJingjing Wu <jingjing.wu@intel.com>
Mon, 16 Oct 2017 01:58:13 +0000 (09:58 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 16 Oct 2017 11:07:11 +0000 (13:07 +0200)
commit6b9ed026a8704b9e5ee5da7997617ef7cc82e114
treed079fd46779ffbfeb4fdcbbbce67c4a275e2cd08
parent87607f45bdecc31c33e9b7666b918dc685a10093
igb_uio: fix build with kernel <= 3.17

Compile fails when kernel version is <= 3.17 with error:
"dereferencing pointer to incomplete type". This is because struct
uio_device definition is not exposed in kernel earlier than 3.17.

This patch fixes it by using pointer of rte_uio_pci_dev as
dev_id instead of uio_device for irq device handler.

Fixes: 5f6ff30dc507 ("igb_uio: fix interrupt enablement after FLR in VM")
Cc: stable@dpdk.org
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_eal/linuxapp/igb_uio/igb_uio.c