From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by dpdk.org (Postfix) with ESMTP id E5E2E282 for ; Wed, 10 Dec 2014 13:27:30 +0100 (CET) Received: by mail-wi0-f178.google.com with SMTP id em10so4946227wid.11 for ; Wed, 10 Dec 2014 04:27:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=xEf8IRAINbBhGYXIDlrXySncv76VB8cqr2IhB8RqN2I=; b=kuVd5lEbAe5ag00zapYDEfE77TE88I7NyRMSGN26chWqFpQsYyWysHxfu/a6U28Sx7 8cWlCW9BOos05J0CuRWMo3FLLDOGz2AQWyijIYwsxfvRtkmxTQ9v4+GidyrYmqh3krBt mZJ7ZmMfpJ3C6iUvzGgKbIrKv6rxd3ybKA5W4g6cXOtuf3FZxrMpHhPo3v1+3uJBXeBy oeAJMFIf1sXR4IkMiicjj+rTEr1wI1ZKYrklnePNk75jrfDFEB0vQSxDwcmJEdbzD+OV MjAT93RvAYR464cvWuPLWY/A3Ew4FJqaHJbQ4wcAvK1bahmgVjkL6HP+glApWb1Zig0Z qyzg== X-Gm-Message-State: ALoCoQl6g+ImejM3Mg8uau19rJi759LuAUvGMFEb+nnTSVspSNbHA696ja6GhVRTENsymmLNWLT8 X-Received: by 10.180.101.200 with SMTP id fi8mr5863248wib.77.1418214449641; Wed, 10 Dec 2014 04:27:29 -0800 (PST) Received: from xps13.localnet ([176.219.165.187]) by mx.google.com with ESMTPSA id ef1sm17758026wic.0.2014.12.10.04.27.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Dec 2014 04:27:28 -0800 (PST) Date: Wed, 10 Dec 2014 04:27:28 -0800 (PST) X-Google-Original-Date: Wed, 10 Dec 2014 13:27 +0100 From: Thomas Monjalon To: Jincheng Miao Message-ID: <8920184.bQLL1J3Qe2@xps13> Organization: 6WIND User-Agent: KMail/4.14.3 (Linux/3.17.4-1-ARCH; KDE/4.14.3; x86_64; ; ) In-Reply-To: <1418209443-1744-5-git-send-email-jmiao@redhat.com> References: <1418209443-1744-1-git-send-email-jmiao@redhat.com> <1418209443-1744-5-git-send-email-jmiao@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 12:27:31 -0000 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 -- Thomas