From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by dpdk.org (Postfix) with ESMTP id 01E416A8B for ; Wed, 10 Dec 2014 14:03:48 +0100 (CET) Received: from zmail14.collab.prod.int.phx2.redhat.com (zmail14.collab.prod.int.phx2.redhat.com [10.5.83.16]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBAD3kRm004821; Wed, 10 Dec 2014 08:03:46 -0500 Date: Wed, 10 Dec 2014 08:03:46 -0500 (EST) From: Jincheng Miao To: Thomas Monjalon Message-ID: <1774076176.25973313.1418216626095.JavaMail.zimbra@redhat.com> In-Reply-To: <8920184.bQLL1J3Qe2@xps13> References: <1418209443-1744-1-git-send-email-jmiao@redhat.com> <1418209443-1744-5-git-send-email-jmiao@redhat.com> <8920184.bQLL1J3Qe2@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.5.82.6] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - GC33 (Linux)/8.0.6_GA_5922) Thread-Topic: xen_dom0: replace strict_strtoul with kstrtoul Thread-Index: AyMxwsnD8ktayRhymaoF/5fDGBpfmA== Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v4 4/4] xen_dom0: replace strict_strtoul with kstrtoul X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2014 13:03:49 -0000 ----- Original Message ----- > 2014-12-10 19:04, Jincheng Miao: > > And add xen_dom0/compat.h for be compatible with older kernel. > > > > Signed-off-by: Jincheng Miao > [...] > > new file mode 100644 > > index 0000000..89dab27 > > --- /dev/null > > +++ b/lib/librte_eal/linuxapp/xen_dom0/compat.h > [...] > > --- a/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c > > +++ b/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c > > @@ -123,7 +123,7 @@ store_memsize(struct device *dev, struct > > device_attribute *attr, > > int err = 0; > > unsigned long mem_size; > > > > - if (0 != strict_strtoul(buf, 0, &mem_size)) > > + if (0 != kstrtoul(buf, 0, &mem_size)) > > return -EINVAL; > > > > mutex_lock(&dom0_dev.data_lock); > > > > Still no include of compat.h Sorry for that, resend PATCH v4 4/4 again. > > -- > Thomas >