[dpdk-dev] [PATCH v2 2/2] eal: replace strict_strtoul with kstrtoul

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Nov 28 17:45:47 CET 2014


2014-10-31 15:37, Jincheng Miao:
> From upstream kernel commit 3db2e9cd, strict_strto* serial functions
> are removed. So that we should directly used kstrtoul instead.
> 
> For compatible with old kernel and RHEL6, add some logic to
> igb_uio/compat.h, same as what we do for pci_num_vf().
> 
> Signed-off-by: Jincheng Miao <jmiao at redhat.com>
> ---
>  lib/librte_eal/linuxapp/igb_uio/compat.h        |    8 ++++++++
>  lib/librte_eal/linuxapp/igb_uio/igb_uio.c       |    4 ++--
>  lib/librte_eal/linuxapp/kni/kni_vhost.c         |    2 +-
>  lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c |    2 +-

You are replacing strict_strtoul in kni and xen_dom0 without providing
a compatibility fallback.

-- 
Thomas


More information about the dev mailing list