[dpdk-dev] [PATCH] eal: replace strict_strtoul with kstrtoul
Jincheng Miao
jmiao at redhat.com
Thu Oct 30 03:30:23 CET 2014
On 10/30/2014 08:04 AM, Thomas Monjalon wrote:
> Hi Jincheng,
>
> 2014-10-24 15:07, Jincheng Miao:
>> From upstream kernel commit 3db2e9cd, strict_strto* serial functions
>> are removed. So that we should directly used kstrtoul instead.
> kstrtoul appeared in version 2.6.39 in commit 33ee3b2e2eb9b
> ("kstrto*: converting strings to integers done (hopefully) right")
>
> So we need a compatibility fallback.
Hi Thomas,
The solution could be simple, we could check the version of kernel,
and define a macro kstrtoul for old kernel.
Regards & thanks,
Jincheng Miao
>
> Thanks
More information about the dev
mailing list