From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jincheng Miao Subject: Re: [PATCH] eal: replace strict_strtoul with kstrtoul Date: Thu, 30 Oct 2014 10:30:23 +0800 Message-ID: <5451A2BF.50108@redhat.com> References: <1414134451-1511-1-git-send-email-jmiao@redhat.com> <32178779.LGXfgoCJ7N@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Thomas Monjalon Return-path: In-Reply-To: <32178779.LGXfgoCJ7N@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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