igb_uio: fix build with kernel 3.18
authorJincheng Miao <jmiao@redhat.com>
Wed, 10 Dec 2014 03:33:01 +0000 (11:33 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 11 Dec 2014 00:42:02 +0000 (01:42 +0100)
commit6573369dd735c43930bfddec34124da05b1584df
tree23f5f6dd34963b59564148eec8e9de693c184aab
parent81ab433fffa4885a76023abd3c8a7e47aee014e3
igb_uio: fix build with kernel 3.18

From upstream kernel commit 3db2e9cd, strict_strto* serial functions
are removed. So that we should directly used kstrtoul instead.

kstrtoul exists from RHEL6.4, so for compatibility with old kernel and RHEL,
add some logic to igb_uio/compat.h.

Signed-off-by: Jincheng Miao <jmiao@redhat.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/igb_uio/compat.h
lib/librte_eal/linuxapp/igb_uio/igb_uio.c