Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/6666/?format=api
https://patches.dpdk.org/api/patches/6666/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1438263693-24165-1-git-send-email-thomas.monjalon@6wind.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": "<1438263693-24165-1-git-send-email-thomas.monjalon@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1438263693-24165-1-git-send-email-thomas.monjalon@6wind.com", "date": "2015-07-30T13:41:33", "name": "[dpdk-dev] pci: fix build on FreeBSD", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "24920a94b51ad7a22858c602ea77a39e6b434ae5", "submitter": { "id": 1, "url": "https://patches.dpdk.org/api/people/1/?format=api", "name": "Thomas Monjalon", "email": "thomas.monjalon@6wind.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1438263693-24165-1-git-send-email-thomas.monjalon@6wind.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/6666/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/6666/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 41296C646;\n\tThu, 30 Jul 2015 15:43:00 +0200 (CEST)", "from mail-wi0-f173.google.com (mail-wi0-f173.google.com\n\t[209.85.212.173]) by dpdk.org (Postfix) with ESMTP id 22123C644\n\tfor <dev@dpdk.org>; Thu, 30 Jul 2015 15:42:59 +0200 (CEST)", "by wibud3 with SMTP id ud3so69051887wib.0\n\tfor <dev@dpdk.org>; Thu, 30 Jul 2015 06:42:59 -0700 (PDT)", "from XPS13.dev.6wind.com (6wind.net2.nerim.net. [213.41.151.210])\n\tby smtp.gmail.com with ESMTPSA id\n\teu2sm3133669wic.8.2015.07.30.06.42.57\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 30 Jul 2015 06:42:57 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=EwhxsxWaheZyWrHfrtaIyFuWyJB5XGVMwtusdie3xLM=;\n\tb=FQ+bEBrYn2XCBsvVH14X8TKJl2AQKschQvvHdY1Bo2pXR598i9Q1IgzuF0DASetdiL\n\t5Wck32YiyePPg7su65EJjdboFSiJf3+yFcsieijPaCELRY5c3vzBs2T8YucD3JB2SgaZ\n\tcn3BVd6ydnm/KXN7Y3EjmpCgS8BX1GSrEIvhAuezGfg/Nne/Zc27F8fX8Z8ovD5BvFGq\n\tGoKL/6kEpkuDBzQp67JNkALMo73N2VIDhOBfNu5fhJLZWOQ0yYpu8H4tTmTWGOym8uRk\n\t1LJ6zBEsYdIVeRm7EZ9VvI252OTcobTivlk4jec126XmU+h11YNFCG5q8H7GCsDEQidh\n\txlIA==", "X-Gm-Message-State": "ALoCoQlNx/Oh/2c0Yrtfh909jxdtcPyHTUVlJ7lpkf/lqFXGO7Jz1riKrgTeBj3dABmU4/+3i+nI", "X-Received": "by 10.180.8.68 with SMTP id p4mr6697447wia.27.1438263778567;\n\tThu, 30 Jul 2015 06:42:58 -0700 (PDT)", "From": "Thomas Monjalon <thomas.monjalon@6wind.com>", "To": "Stephen Hemminger <stephen@networkplumber.org>", "Date": "Thu, 30 Jul 2015 15:41:33 +0200", "Message-Id": "<1438263693-24165-1-git-send-email-thomas.monjalon@6wind.com>", "X-Mailer": "git-send-email 2.4.2", "Cc": "dev@dpdk.org", "Subject": "[dpdk-dev] [PATCH] pci: fix build on FreeBSD", "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": "Build log:\nlib/librte_eal/bsdapp/eal/eal_pci.c:462:9: error:\nincompatible integer to pointer conversion passing 'u_int32_t'\n(aka 'unsigned int') to parameter of type 'void *'\n\nIt is fixed by passing the pointer of pi.pi_data to memcpy.\n\nBy the way, it seems strange that pi_data is initialized twice:\n\t.pi_data = *(u_int32_t *)buf\n\tmemcpy(&pi.pi_data, buf, len);\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n lib/librte_eal/bsdapp/eal/eal_pci.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c\nindex ff56cd3..6fa0d08 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_pci.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_pci.c\n@@ -459,7 +459,7 @@ int rte_eal_pci_write_config(const struct rte_pci_device *dev,\n \t\tgoto error;\n \t}\n \n-\tmemcpy(pi.pi_data, buf, len);\n+\tmemcpy(&pi.pi_data, buf, len);\n \n \tfd = open(\"/dev/pci\", O_RDONLY);\n \tif (fd < 0) {\n", "prefixes": [ "dpdk-dev" ] }{ "id": 6666, "url": "