get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/40285/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 40285,
    "url": "http://patches.dpdk.org/api/patches/40285/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180521164150.24252-2-stephen@networkplumber.org/",
    "project": {
        "id": 1,
        "url": "http://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": "<20180521164150.24252-2-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180521164150.24252-2-stephen@networkplumber.org",
    "date": "2018-05-21T16:41:49",
    "name": "[dpdk-dev,1/2] pci: make rte_pci_remove_device static",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a6fee2c71b881d3af83c71958507c7ea851f31dc",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180521164150.24252-2-stephen@networkplumber.org/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/40285/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/40285/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D63A71B215;\n\tMon, 21 May 2018 18:41:58 +0200 (CEST)",
            "from mail-pl0-f66.google.com (mail-pl0-f66.google.com\n\t[209.85.160.66]) by dpdk.org (Postfix) with ESMTP id 59DFC1B1C9\n\tfor <dev@dpdk.org>; Mon, 21 May 2018 18:41:56 +0200 (CEST)",
            "by mail-pl0-f66.google.com with SMTP id t12-v6so9118032plo.7\n\tfor <dev@dpdk.org>; Mon, 21 May 2018 09:41:56 -0700 (PDT)",
            "from xeon-e3.lan (204-195-35-107.wavecable.com. [204.195.35.107])\n\tby smtp.gmail.com with ESMTPSA id\n\tu4-v6sm34622838pgn.10.2018.05.21.09.41.53\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 21 May 2018 09:41:53 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=1Ty7TNytf7njgQSdAzcpeo44kx34ZeuR1qsRTVh3Vig=;\n\tb=UN4xgSG4rz9K2JDndhQFSLsOtd/D1zt5MfpcGEyOeMq+OUJ4wvDVJvcOam4NQyP78S\n\tnmHMwvSfXEoX33XBQqo0zdXeTtua3dJ9o3r1i7aAzXeM3rXzTcDcUMSwKuU+/PX40n+9\n\tppovnwcXM92YdhSObeKvMY8Xe+anlaURlD/adl7PSSn+aXnX1lAoml07lI/PxMHDbkdQ\n\tRhTZDEAxOcePVLRxhEB/2nylsqdBruub4CWhqi1cPOILQsTgdMYjca32p64Vk+OhzmCq\n\tMYA4qNKNqNbtte/pKtxkCFdrCiXJUIp3R1cCCiZtIQNa8hOpQyyGXgO3p47hAysIDU3A\n\tJLvA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=1Ty7TNytf7njgQSdAzcpeo44kx34ZeuR1qsRTVh3Vig=;\n\tb=PuAQ5wji5VkfoWFcBp1E3QgXVVDOAWO8wB956F2uxf0lika2m66eMMsE15iagT02id\n\t4f3rxK7PPwJz1+IbOm5etI6vOOsiX6OoFXHCAJJQgbNCh0wg7pqXB1OLUE00uUdi4XFE\n\tuIotrEI+qkHeA26PHHSdfiSyI9sedZANmEeXb6sheX1lliSkffctDcLTdtvA7/MzXfMY\n\tzyzo3ijw94nJDyj6pSwqnMdCTIQrDXz13LiA3DNyZeZuQCSynQqZfBL6rQw7Wf6uIhr4\n\t5osOWaNXZrT49NETiEdJPNfR7kj2yLuS2xWvNE0LCKEQ1Kvhuy3RF+ksKyxAxQYOKZNQ\n\tI3bA==",
        "X-Gm-Message-State": "ALKqPwfev9u+/P/EVV248K+xK/cXFo7fTJ0+8dzeaLe5FrRIjkq4lWlF\n\tQKok9E+V+/p6EM/srHKO44vuGYyZw+I=",
        "X-Google-Smtp-Source": "AB8JxZou6uNE0jmH/UMP/eKqSUv/Aa8ROPtPOQRCtO5t9CXUZpseHV8FS4+QgvCKnZ2qmoG+U3m30g==",
        "X-Received": "by 2002:a17:902:7409:: with SMTP id\n\tg9-v6mr21094097pll.255.1526920915194; \n\tMon, 21 May 2018 09:41:55 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "Date": "Mon, 21 May 2018 09:41:49 -0700",
        "Message-Id": "<20180521164150.24252-2-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.17.0",
        "In-Reply-To": "<20180521164150.24252-1-stephen@networkplumber.org>",
        "References": "<20180521164150.24252-1-stephen@networkplumber.org>",
        "Subject": "[dpdk-dev] [PATCH 1/2] pci: make rte_pci_remove_device static",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://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": "<https://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": "Only used in one file, and therefore can be made static.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n drivers/bus/pci/pci_common.c |  5 ++++-\n drivers/bus/pci/private.h    | 10 ----------\n 2 files changed, 4 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c\nindex 7215aaec3add..d3ac04a8f00f 100644\n--- a/drivers/bus/pci/pci_common.c\n+++ b/drivers/bus/pci/pci_common.c\n@@ -26,6 +26,9 @@\n \n #include \"private.h\"\n \n+\n+static void rte_pci_remove_device(struct rte_pci_device *pci_device);\n+\n extern struct rte_pci_bus rte_pci_bus;\n \n #define SYSFS_PCI_DEVICES \"/sys/bus/pci/devices\"\n@@ -445,7 +448,7 @@ rte_pci_insert_device(struct rte_pci_device *exist_pci_dev,\n }\n \n /* Remove a device from PCI bus */\n-void\n+static void\n rte_pci_remove_device(struct rte_pci_device *pci_dev)\n {\n \tTAILQ_REMOVE(&rte_pci_bus.device_list, pci_dev, next);\ndiff --git a/drivers/bus/pci/private.h b/drivers/bus/pci/private.h\nindex 88fa587e74dc..02e2fb44367f 100644\n--- a/drivers/bus/pci/private.h\n+++ b/drivers/bus/pci/private.h\n@@ -93,16 +93,6 @@ void rte_pci_add_device(struct rte_pci_device *pci_dev);\n void rte_pci_insert_device(struct rte_pci_device *exist_pci_dev,\n \t\tstruct rte_pci_device *new_pci_dev);\n \n-/**\n- * Remove a PCI device from the PCI Bus. This sets to NULL the bus references\n- * in the PCI device object as well as the generic device object.\n- *\n- * @param pci_device\n- *\tPCI device to be removed from PCI Bus\n- * @return void\n- */\n-void rte_pci_remove_device(struct rte_pci_device *pci_device);\n-\n /**\n  * Update a pci device object by asking the kernel for the latest information.\n  *\n",
    "prefixes": [
        "dpdk-dev",
        "1/2"
    ]
}