get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 121627,
    "url": "http://patches.dpdk.org/api/patches/121627/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230105161020.247780-2-thomas@monjalon.net/",
    "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": "<20230105161020.247780-2-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230105161020.247780-2-thomas@monjalon.net",
    "date": "2023-01-05T16:10:18",
    "name": "[1/3] eal/windows: fix pedantic build",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "503869581708ff0c68da3ab541fbc59a9cbda995",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "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/20230105161020.247780-2-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 26402,
            "url": "http://patches.dpdk.org/api/series/26402/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26402",
            "date": "2023-01-05T16:10:17",
            "name": "fix mlx5 build with MinGW",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/26402/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/121627/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/121627/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 66121A00C2;\n\tThu,  5 Jan 2023 17:10:42 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5855A42D38;\n\tThu,  5 Jan 2023 17:10:42 +0100 (CET)",
            "from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 102364021E;\n Thu,  5 Jan 2023 17:10:41 +0100 (CET)",
            "from compute2.internal (compute2.nyi.internal [10.202.2.46])\n by mailout.nyi.internal (Postfix) with ESMTP id 9BABA5C0172;\n Thu,  5 Jan 2023 11:10:40 -0500 (EST)",
            "from mailfrontend1 ([10.202.2.162])\n by compute2.internal (MEProxy); Thu, 05 Jan 2023 11:10:40 -0500",
            "by mail.messagingengine.com (Postfix) with ESMTPA; Thu,\n 5 Jan 2023 11:10:38 -0500 (EST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to\n :in-reply-to:message-id:mime-version:references:reply-to:sender\n :subject:subject:to:to; s=fm2; t=1672935040; x=1673021440; bh=QN\n 6Am80DuS29IzYzy2Jw8Xre3qiy6dVzwF1PQLBRuMk=; b=Iljrt5M31XgkzWQVVC\n pd39mXxYWlZg0Upb7uPIDAnuUZxGV9E0byyfQOz6HnJjOvefU9Dxyc86/jyYRupP\n IQWpmXd8PUqqnOAlDU5KdAIu7CiQsf3fksUb1GMigT9o1Dqu6pJ/rBphdubKG9PK\n XWuZNK9uYHhOrUu7U+e71h+uxf7tZ24PglfsilE/hL1LovDzn0E/InY52tfc1NZs\n 8y4JoTEKi7TqcBJ/HrnlUvDM0+ZSVADbzJh60XLcR/mtvY21cZri4eHT41ZC41tn\n n1wQ2INYBxp08O2QOs8iJ+hdrpgHWWhVLvA+AUTiiaM6LiX6MdNz/DpASBEhUTVr\n PDog==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:cc:content-transfer-encoding:date:date\n :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to\n :message-id:mime-version:references:reply-to:sender:subject\n :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender\n :x-sasl-enc; s=fm2; t=1672935040; x=1673021440; bh=QN6Am80DuS29I\n zYzy2Jw8Xre3qiy6dVzwF1PQLBRuMk=; b=mFGN41il9ELZhTNhSBRPdVnmP8rLa\n oatW+BvUlqenmUqBcasyTO3DXSY6Z+2OVTsUmo7r9uH6XsTK21zQgZe/U4DeXnqa\n My/wU2muHEWiVoihn5LhhAGRNbHco99gtsQWFQ7CQRDou2VZTmksseTcc8fDn7hD\n bI6eZ+QOgk/QetBuAoGuACom3cqlr0ihzyYxpzsESxJhio/+gmYdbFNS1lOKhs/m\n kNvGTjEWHL/atNBYu6s2EiBM18iUCJJIOE/5GEvT1PjS5KPxU+/qcbJECuSkdvU0\n B/9og5yAKC2Gfpq9rbv+DAxOCL6ikqZBwsyRh6V6I1kjXypf+niQnLb7w=="
        ],
        "X-ME-Sender": "<xms:gPa2Y-Vb_XKVr2C_TPBWjAA-thEz_TazHyjfXH9p1lnPljXJyKjotA>\n <xme:gPa2Y6n6gSvwIZD3LYwwTpMjnt0Q5jPnYoAvXdTjoXsieneZilBN_zYR-XGOsw0su\n zWktEvEP6JcyLxOLg>",
        "X-ME-Received": "\n <xmr:gPa2Yybot-b6DCJfQnJByzpTE-lNee5oHP6CLo2bJPgT6S5pBQ_RpV4gWfG_zUC2ItrFGuWoiC0Qbt6Vhw1ipbgfHN160Bg>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedvhedrjeekgdekjecutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc\n fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr\n shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg\n ftrfgrthhtvghrnhepvdejhfdugeehvddtieejieegteeuudfgjeeukeeiledthfetveek\n hefhieelhfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh\n homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth",
        "X-ME-Proxy": "<xmx:gPa2Y1Voy7KTMYs8cm0-0pDm14idjIrp27NaQ34n_KsrBvSZDMZWNA>\n <xmx:gPa2Y4mO9wAxkGqSXEX0ve6ZqsvJOBQ-Swkj0xjEyNf6r9UEjbzDQQ>\n <xmx:gPa2Y6diqYjb0sVA1W2D_3aMPx-bGO-7GBfHxlXozR4cw8LL9DJHcw>\n <xmx:gPa2Yy4maa1F3F2mehjBbZdMwyV0pRzaMFY06Q_v9_riYlzCUS-Swg>",
        "Feedback-ID": "i47234305:Fastmail",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "Tal Shnaiderman <talshn@nvidia.com>, stable@dpdk.org,\n\tDmitry Kozlyuk <dmitry.kozliuk@gmail.com>,\n\tNarcisa Ana Maria Vasile <navasile@linux.microsoft.com>,\n\tDmitry Malloy <dmitrym@microsoft.com>,\n\tPallavi Kadam <pallavi.kadam@intel.com>,\n\tNarcisa Vasile <\"navasile@linux.microsoft.comnavasile\"@microsoft.com>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tKeith Wiles <keith.wiles@intel.com>",
        "Subject": "[PATCH 1/3] eal/windows: fix pedantic build",
        "Date": "Thu,  5 Jan 2023 17:10:18 +0100",
        "Message-Id": "<20230105161020.247780-2-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.39.0",
        "In-Reply-To": "<20230105161020.247780-1-thomas@monjalon.net>",
        "References": "<20230105161020.247780-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "MinGW GCC 12 shows an illegal pointer conversion\nwhen included in a pedantic module:\n\nlib/eal/windows/include/pthread.h:137:41: error:\n\tISO C forbids conversion of object pointer to function pointer type\n\t[-Werror=pedantic]\n 137 | hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)threadfunc,\n     |                                 ^\n\nFixes: e8428a9d89f1 (\"eal/windows: add some basic functions and macros\")\nCc: stable@dpdk.org\n\nBy using uintptr_t, the compiler is forced to accept the conversion.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n lib/eal/windows/include/pthread.h | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/eal/windows/include/pthread.h b/lib/eal/windows/include/pthread.h\nindex 27fd2cca52..f7cf0e9ddf 100644\n--- a/lib/eal/windows/include/pthread.h\n+++ b/lib/eal/windows/include/pthread.h\n@@ -134,7 +134,8 @@ pthread_create(void *threadid, const void *threadattr, void *threadfunc,\n {\n \tRTE_SET_USED(threadattr);\n \tHANDLE hThread;\n-\thThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)threadfunc,\n+\thThread = CreateThread(NULL, 0,\n+\t\t(LPTHREAD_START_ROUTINE)(uintptr_t)threadfunc,\n \t\targs, 0, (LPDWORD)threadid);\n \tif (hThread) {\n \t\tSetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS);\n",
    "prefixes": [
        "1/3"
    ]
}