[dpdk-dev] [PATCH] igb_uio: fix compile error
jianfeng.tan at intel.com
Mon Oct 16 12:10:25 CEST 2017
> -----Original Message-----
> From: Wu, Jingjing
> Sent: Monday, October 16, 2017 9:58 AM
> To: Tan, Jianfeng
> Cc: dev at dpdk.org; Wu, Jingjing
> Subject: [PATCH] igb_uio: fix compile error
> 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")
> Signed-off-by: Jingjing Wu <jingjing.wu at intel.com>
Yes, we don't have to use struct uio_device as the cookie; what we need is struct uio_info for notification.
Reviewed-by: Jianfeng Tan <jianfeng.tan at intel.com>
More information about the dev