get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 617267,
    "url": "http://patchwork.ozlabs.org/api/patches/617267/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1462104443-30724-1-git-send-email-Julia.Lawall@lip6.fr/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1462104443-30724-1-git-send-email-Julia.Lawall@lip6.fr>",
    "list_archive_url": null,
    "date": "2016-05-01T12:07:23",
    "name": "i40e: constify i40e_client_ops structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "b2747e9e351e3d32856b15177baf2fac3e7553d5",
    "submitter": {
        "id": 10041,
        "url": "http://patchwork.ozlabs.org/api/people/10041/?format=api",
        "name": "Julia Lawall",
        "email": "julia.lawall@lip6.fr"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1462104443-30724-1-git-send-email-Julia.Lawall@lip6.fr/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/617267/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/617267/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 3qydl208yTz9t5V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  2 May 2016 06:07:25 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 7CBA12E61A;\n\tSun,  1 May 2016 20:07:24 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id p9rKdu8zeYVz; Sun,  1 May 2016 20:07:22 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 293352DFEF;\n\tSun,  1 May 2016 20:07:22 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id A47821BFBF4\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun,  1 May 2016 12:33:09 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 9ED968AEA8\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun,  1 May 2016 12:33:09 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1Bm1ygoOa4AL for <intel-wired-lan@lists.osuosl.org>;\n\tSun,  1 May 2016 12:33:08 +0000 (UTC)",
            "from mail3-relais-sop.national.inria.fr\n\t(mail3-relais-sop.national.inria.fr [192.134.164.104])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id EF9E78ACD7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun,  1 May 2016 12:33:07 +0000 (UTC)",
            "from palace.rsr.lip6.fr (HELO localhost.localdomain)\n\t([132.227.105.202])\n\tby mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256;\n\t01 May 2016 14:22:42 +0200"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "delayed 00:10:21 by SQLgrey-1.7.6",
        "X-IronPort-AV": "E=Sophos;i=\"5.24,561,1454972400\"; d=\"scan'208\";a=\"176348623\"",
        "From": "Julia Lawall <Julia.Lawall@lip6.fr>",
        "To": "linux-kernel@vger.kernel.org",
        "Date": "Sun,  1 May 2016 14:07:23 +0200",
        "Message-Id": "<1462104443-30724-1-git-send-email-Julia.Lawall@lip6.fr>",
        "X-Mailer": "git-send-email 1.9.1",
        "X-Mailman-Approved-At": "Sun, 01 May 2016 20:07:20 +0000",
        "Cc": "Mustafa Ismail <mustafa.ismail@intel.com>, netdev@vger.kernel.org,\n\tFaisal Latif <faisal.latif@intel.com>, linux-rdma@vger.kernel.org,\n\tTatyana Nikolova <tatyana.e.nikolova@intel.com>,\n\tChien Tin Tung <chien.tin.tung@intel.com>,\n\tkernel-janitors@vger.kernel.org, \n\tDoug Ledford <dledford@redhat.com>, intel-wired-lan@lists.osuosl.org, \n\tSean Hefty <sean.hefty@intel.com>,\n\tShiraz Saleem <shiraz.saleem@intel.com>, \n\tHal Rosenstock <hal.rosenstock@gmail.com>",
        "Subject": "[Intel-wired-lan] [PATCH] i40e: constify i40e_client_ops structure",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "The i40e_client_ops structure is never modified, so declare it as const.\n\nDone with the help of Coccinelle.\n\nSigned-off-by: Julia Lawall <Julia.Lawall@lip6.fr>\n\n---\n drivers/infiniband/hw/i40iw/i40iw_main.c      |    2 +-\n drivers/net/ethernet/intel/i40e/i40e_client.h |    2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c\nindex 90e5af2..e41fae24 100644\n--- a/drivers/infiniband/hw/i40iw/i40iw_main.c\n+++ b/drivers/infiniband/hw/i40iw/i40iw_main.c\n@@ -1863,7 +1863,7 @@ static enum i40iw_status_code i40iw_virtchnl_send(struct i40iw_sc_dev *dev,\n }\n \n /* client interface functions */\n-static struct i40e_client_ops i40e_ops = {\n+static const struct i40e_client_ops i40e_ops = {\n \t.open = i40iw_open,\n \t.close = i40iw_close,\n \t.l2_param_change = i40iw_l2param_change,\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_client.h b/drivers/net/ethernet/intel/i40e/i40e_client.h\nindex bf6b453..a4601d9 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_client.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_client.h\n@@ -217,7 +217,7 @@ struct i40e_client {\n #define I40E_CLIENT_FLAGS_LAUNCH_ON_PROBE\tBIT(0)\n #define I40E_TX_FLAGS_NOTIFY_OTHER_EVENTS\tBIT(2)\n \tenum i40e_client_type type;\n-\tstruct i40e_client_ops *ops;\t/* client ops provided by the client */\n+\tconst struct i40e_client_ops *ops; /* client ops provided by the client */\n };\n \n static inline bool i40e_client_is_registered(struct i40e_client *client)\n",
    "prefixes": []
}