get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219613,
    "url": "http://patchwork.ozlabs.org/api/patches/2219613/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260403151927.GB6192@frogsfrogsfrogs/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api",
        "name": "Linux ext4 filesystem development",
        "link_name": "linux-ext4",
        "list_id": "linux-ext4.vger.kernel.org",
        "list_email": "linux-ext4@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260403151927.GB6192@frogsfrogsfrogs>",
    "list_archive_url": null,
    "date": "2026-04-03T15:19:27",
    "name": "libsupport: change get_thread_id return type to unsigned long long",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ab953a6a210246274aa20400c6858eb3cf9aef2c",
    "submitter": {
        "id": 77032,
        "url": "http://patchwork.ozlabs.org/api/people/77032/?format=api",
        "name": "Darrick J. Wong",
        "email": "djwong@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260403151927.GB6192@frogsfrogsfrogs/mbox/",
    "series": [
        {
            "id": 498642,
            "url": "http://patchwork.ozlabs.org/api/series/498642/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=498642",
            "date": "2026-04-03T15:19:27",
            "name": "libsupport: change get_thread_id return type to unsigned long long",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498642/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219613/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219613/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=hcll=CC=vger.kernel.org=linux-ext4+bounces-15630-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ext4@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@ozlabs.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=NVR5vw8g;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=hcll=cc=vger.kernel.org=linux-ext4+bounces-15630-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.232.135.74 arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org",
            "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=NVR5vw8g;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15630-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"NVR5vw8g\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnMpP3rh2z1yCt\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 02:19:41 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fnMpP3326z4wDS\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 02:19:41 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fnMpP2zwHz4wSR; Sat, 04 Apr 2026 02:19:41 +1100 (AEDT)",
            "from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4fnMpK5PJhz4wDS\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 04 Apr 2026 02:19:37 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id C53D73009887\n\tfor <patchwork-incoming@ozlabs.org>; Fri,  3 Apr 2026 15:19:32 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 64F8D313535;\n\tFri,  3 Apr 2026 15:19:29 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 84F7F388389\n\tfor <linux-ext4@vger.kernel.org>; Fri,  3 Apr 2026 15:19:28 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id C9B75C4CEF7;\n\tFri,  3 Apr 2026 15:19:27 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775229581; cv=pass;\n\tb=ElXwQMziRsNn4sEg+1qixPxa3suhmeZcDyXZWIsXOdVMidCoh/YS/zXFZ0t3bCAWO8muxLxif9QVlIgDLYJ0laVcizbIKkf4AVTJZIS9qqcHRIBStgsRHWsg+mLZPfe5Slb+zqONmDOQ69Nx+PmbM0emQvyV0rf8ovmBmRgStJqxq+cN6t9yc303eaYsXXO9woOQD+iHZWf2K7mMh7zPG+mQRvcI0aepuojxOJgvs4lJ5F0MnxMwkkOz5+6KouviWYDWZFmbDBH/+4QEfqUl0HHYAO/EFnOpQeFQhTpwPGfxeS3jTIyNMk39YfF9uCHY1+U23WoE0vfT6kGUx2ko/w==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775229568; cv=none;\n b=aOput3NAKikzX2dQWLwq95rd+TkQW4caZYywlkvUlrhTiT0XK4zGpmz09aNr5QyH9l6we/6Ev6DnmqdxRIjtwamq4rabKpkqIAuM51jQsQfd7VkjTizNsQkyOhTNwCVZSLa0Vd/PZVVzUvIspiPrm4gm0AgaabrwRi1ae55WKM0="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775229581; c=relaxed/relaxed;\n\tbh=8t29nkHAMHGNsFQa7rBSPRu6jpvTqemDfYEy6sncbrs=;\n\th=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:\n\t Content-Disposition;\n b=DTCbDL7odFFaCKMGz7EbqMutNK9MeJjQiuQ6SrdYtZEekd8Ox71dHfl9jMh2583BM3ck9RrOSvSQbf5Owev/uRocaWJE+buUmAB/zTxa9/MmZicyTK4CD08G5kEw1C7BmnVlARouuul//sF1jkVBCZy1P8eM7KjsjjMfOGVdOYueK9dG2RBWwdMgktzi3pU7QLVUF2JXb8qRRwI981rzTHakileag5cDnmZ3GbUbI3mAD0vAZXFAc1/16joQ1LIeJ4ejTXQsTsvaop5Fv0d04y8R8y/70Yuja0bX855quJFfIiwD16VfaGA/hpkqqvbPfANvBFppvNuATEGjD6JvKw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775229568; c=relaxed/simple;\n\tbh=x19Hg2oMkg18EV87SUoCYRAxXJKwiYTObp/+2Nzq8cs=;\n\th=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:\n\t Content-Disposition;\n b=Y30HV/rEQdmb1xiFPB10FGesJGvxzER/nXwn0HqCVImeEFiPT2WQ5fqbssCijGaFisaPODeow43c4IescasxEAMSZHLYo0WY4qFqc9EgcnU/c5iavMLKj8gctbif/EOzigd8qqsw08txxNXgd1xAeUX3tRPxDb5dXtJpvpBiw5A="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=NVR5vw8g; dkim-atps=neutral;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15630-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=NVR5vw8g; arc=none smtp.client-ip=10.30.226.201"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1775229567;\n\tbh=x19Hg2oMkg18EV87SUoCYRAxXJKwiYTObp/+2Nzq8cs=;\n\th=Date:From:To:Cc:Subject:From;\n\tb=NVR5vw8gRPG2Mk+PYkRW+BMdn0TxRs3gZmXk72RWWox5oACXV6zdxVsOo86vKwtvm\n\t QDGn70AeBy8Am8E0c9waohEmIlrK/Bhe5EOLfD3/iCIqnvba3C0FGrS1S7QQlw1m/V\n\t 3mLwIj9w20KF1ksWK94yE7tginliXHzKJhLf8z6pp6pPeUyRV1VKBpYStGhaA3M72v\n\t b9AajRB7ydqY0EqyJA8HGIqqRh4Gmvsn42YoEa4tfSYFeZ45MIxrjmav9f3ZephudZ\n\t ULcTzBPaME1OJSi2ZM/Lk+K70FMpS9P0DtBEsbuhx0C1F16yQi6IdHC+dRqd+9RhCn\n\t qO8tCAP6qfWhA==",
        "Date": "Fri, 3 Apr 2026 08:19:27 -0700",
        "From": "\"Darrick J. Wong\" <djwong@kernel.org>",
        "To": "Theodore Ts'o <tytso@mit.edu>",
        "Cc": "Ext4 Developers List <linux-ext4@vger.kernel.org>",
        "Subject": "[PATCH] libsupport: change get_thread_id return type to unsigned\n long long",
        "Message-ID": "<20260403151927.GB6192@frogsfrogsfrogs>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ext4@vger.kernel.org",
        "List-Id": "<linux-ext4.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=utf-8",
        "Content-Disposition": "inline",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "From: Darrick J. Wong <djwong@kernel.org>\n\nWith -Wformat enabled, the e2fsprogs build spews out a lot of warnings\nfor fuse2fs:\n\n ../../misc/fuse2fs.c: In function ‘__fuse2fs_finish’:\n ../../misc/fuse2fs.c:152:24: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]\n   152 |                 printf(\"FUSE2FS (%s): tid=%llu \" format, (fuse2fs)->shortdev, get_thread_id(), ##__VA_ARGS__); \\\n       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~                              ~~~~~~~~~~~~~~~\n       |                                                                               |\n       |                                                                               uint64_t {aka long unsigned int}\n ../../misc/fuse2fs.c:556:17: note: in expansion of macro ‘dbg_printf’\n   556 |                 dbg_printf(ff, \"%s: libfuse ret=%d\\n\", func, ret);\n       |                 ^~~~~~~~~~\n\nBecause the linter doesn't like mixing %llu with a uint64_t type.\nOn some platforms, uint64_t is merely \"unsigned long\" and whiiiiine.\n\nSince this is a new wrapper function, let's change the return type.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n lib/support/thread.h |    2 +-\n lib/support/thread.c |    4 ++--\n 2 files changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/support/thread.h b/lib/support/thread.h\nindex 9a7f5c9db1b7a2..efba1c3b1eec0b 100644\n--- a/lib/support/thread.h\n+++ b/lib/support/thread.h\n@@ -2,4 +2,4 @@\n  * thread.h -- header file for thread utilities\n  */\n \n-uint64_t get_thread_id(void);\n+unsigned long long get_thread_id(void);\ndiff --git a/lib/support/thread.c b/lib/support/thread.c\nindex a9a10940c0fd3e..651be1cf833860 100644\n--- a/lib/support/thread.c\n+++ b/lib/support/thread.c\n@@ -12,7 +12,7 @@\n \n #include \"support/thread.h\"\n \n-uint64_t get_thread_id(void)\n+unsigned long long get_thread_id(void)\n {\n #if defined(HAVE_GETTID)\n \treturn gettid();\n@@ -22,7 +22,7 @@ uint64_t get_thread_id(void)\n \tif (pthread_threadid_np(NULL, &tid))\n \t\treturn tid;\n #elif defined(HAVE_PTHREAD)\n-\treturn (__u64)(uintptr_t) pthread_self();\n+\treturn (unsigned long long)(uintptr_t) pthread_self();\n #endif\n \treturn getpid();\n }\n",
    "prefixes": []
}