Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/952/?format=api
https://patches.dpdk.org/api/patches/952/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1414134451-1511-1-git-send-email-jmiao@redhat.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1414134451-1511-1-git-send-email-jmiao@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1414134451-1511-1-git-send-email-jmiao@redhat.com", "date": "2014-10-24T07:07:31", "name": "[dpdk-dev] eal: replace strict_strtoul with kstrtoul", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a0f1b681001faf32ed9ebe992ef23cf70960a109", "submitter": { "id": 99, "url": "https://patches.dpdk.org/api/people/99/?format=api", "name": "Jincheng Miao", "email": "jmiao@redhat.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1414134451-1511-1-git-send-email-jmiao@redhat.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/952/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/952/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id D7A357E7E;\n\tFri, 24 Oct 2014 08:59:11 +0200 (CEST)", "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 374837E75\n\tfor <dev@dpdk.org>; Fri, 24 Oct 2014 08:59:10 +0200 (CEST)", "from int-mx14.intmail.prod.int.phx2.redhat.com\n\t(int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27])\n\tby mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9O77bDX008011\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=FAIL) for <dev@dpdk.org>; Fri, 24 Oct 2014 03:07:37 -0400", "from cyclades01.nay.redhat.com ([10.66.70.120])\n\tby int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with\n\tESMTP id s9O77XJX029958; Fri, 24 Oct 2014 03:07:35 -0400" ], "From": "Jincheng Miao <jmiao@redhat.com>", "To": "dev@dpdk.org", "Date": "Fri, 24 Oct 2014 15:07:31 +0800", "Message-Id": "<1414134451-1511-1-git-send-email-jmiao@redhat.com>", "X-Scanned-By": "MIMEDefang 2.68 on 10.5.11.27", "Subject": "[dpdk-dev] [PATCH] eal: 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 <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From upstream kernel commit 3db2e9cd, strict_strto* serial functions\nare removed. So that we should directly used kstrtoul instead.\n\nSigned-off-by: Jincheng Miao <jmiao@redhat.com>\n---\n lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 4 ++--\n lib/librte_eal/linuxapp/kni/kni_vhost.c | 2 +-\n lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c | 2 +-\n 3 files changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c\nindex d1ca26e..47ff2f3 100644\n--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c\n+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c\n@@ -83,7 +83,7 @@ store_max_vfs(struct device *dev, struct device_attribute *attr,\n \tunsigned long max_vfs;\n \tstruct pci_dev *pdev = container_of(dev, struct pci_dev, dev);\n \n-\tif (0 != strict_strtoul(buf, 0, &max_vfs))\n+\tif (0 != kstrtoul(buf, 0, &max_vfs))\n \t\treturn -EINVAL;\n \n \tif (0 == max_vfs)\n@@ -174,7 +174,7 @@ store_max_read_request_size(struct device *dev,\n \tunsigned long size = 0;\n \tint ret;\n \n-\tif (strict_strtoul(buf, 0, &size) != 0)\n+\tif (0 != kstrtoul(buf, 0, &size))\n \t\treturn -EINVAL;\n \n \tret = pcie_set_readrq(pci_dev, (int)size);\ndiff --git a/lib/librte_eal/linuxapp/kni/kni_vhost.c b/lib/librte_eal/linuxapp/kni/kni_vhost.c\nindex fe512c2..ba0c1ac 100644\n--- a/lib/librte_eal/linuxapp/kni/kni_vhost.c\n+++ b/lib/librte_eal/linuxapp/kni/kni_vhost.c\n@@ -739,7 +739,7 @@ set_sock_en(struct device *dev, struct device_attribute *attr,\n \tunsigned long en;\n \tint err = 0;\n \n-\tif (0 != strict_strtoul(buf, 0, &en))\n+\tif (0 != kstrtoul(buf, 0, &en))\n \t\treturn -EINVAL;\n \n \tif (en)\ndiff --git a/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c b/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c\nindex dfb271d..8a3727d 100644\n--- a/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c\n+++ b/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c\n@@ -123,7 +123,7 @@ store_memsize(struct device *dev, struct device_attribute *attr,\n \tint err = 0;\n \tunsigned long mem_size;\n \n-\tif (0 != strict_strtoul(buf, 0, &mem_size))\n+\tif (0 != kstrtoul(buf, 0, &mem_size))\n \t\treturn -EINVAL;\n \n \tmutex_lock(&dom0_dev.data_lock);\n", "prefixes": [ "dpdk-dev" ] }{ "id": 952, "url": "