get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230187,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2230187/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260429122617.7324-5-ilpo.jarvinen@linux.intel.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260429122617.7324-5-ilpo.jarvinen@linux.intel.com>",
    "list_archive_url": null,
    "date": "2026-04-29T12:26:10",
    "name": "[04/11] PCI: Remove const removal cast",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "9194a507caa5a470d2f4d39ff475a89c57467a98",
    "submitter": {
        "id": 83553,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/83553/?format=api",
        "name": "Ilpo Järvinen",
        "email": "ilpo.jarvinen@linux.intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260429122617.7324-5-ilpo.jarvinen@linux.intel.com/mbox/",
    "series": [
        {
            "id": 502050,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502050/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=502050",
            "date": "2026-04-29T12:26:06",
            "name": "PCI: pci_resource_alignment() improvement + cleanups",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502050/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230187/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230187/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-53389-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=KW73d9RM;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-pci+bounces-53389-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=\"KW73d9RM\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=198.175.65.20",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.intel.com"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5Glj5fznz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 22:27:29 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 1BD0D30055FC\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 12:27:17 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 7CF2C39BFF4;\n\tWed, 29 Apr 2026 12:27:14 +0000 (UTC)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.20])\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 F1482399023;\n\tWed, 29 Apr 2026 12:27:12 +0000 (UTC)",
            "from orviesa007.jf.intel.com ([10.64.159.147])\n  by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Apr 2026 05:27:13 -0700",
            "from ijarvine-mobl1.ger.corp.intel.com (HELO localhost)\n ([10.245.245.212])\n  by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Apr 2026 05:27:09 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777465634; cv=none;\n b=lX8vgMGx8CgXgUsDc58cfhARLdAKQV2nfQ/GmvO41MP4Sfbq6jggwfcpel4J+/5lziZTi+IGN3vk405nP0SU+pfouqfuYk4rhgKlIyvHjwUyLc0ZvR0Zc8kdl94qQpYPXYf1XmWQlZ5FnP1jaPAaIkrtPsxQBS++ME3BMamInK8=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777465634; c=relaxed/simple;\n\tbh=iICkACAhlqRNjUyJ4saFH4NtsQfflsE2R1I8yMUAK3s=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=Qq6007Q0pnX7SLftuvUe/tMZcxlxp1oIq+nfur1s5lnpWAFXEjsouiWfaJukaOGL8UGF1CuhSqiHi+ijp1o5C0si+Bjz/kFk6/nH4bnVdLr6BfU8MNbWIyE6eh3bd6hZ8CXxGEUtwfFBMhxZZqbSkVJgftrA09mDf8Rb+6/OWec=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com;\n spf=pass smtp.mailfrom=linux.intel.com;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=KW73d9RM; arc=none smtp.client-ip=198.175.65.20",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1777465633; x=1809001633;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=iICkACAhlqRNjUyJ4saFH4NtsQfflsE2R1I8yMUAK3s=;\n  b=KW73d9RME0ysgg7zQD2kTfu5Ud1fqJifI8F63pztIUF7rYhb9477xYT4\n   +mobIACQ2sMTEc/QX2WZ+rTm7Y52oV+75Qq2gQVDd/DQXX0qEUBsrXp/I\n   LL/y7Mhr90oghpECBVuzCMjHrNVYFCYAutmoiAJyXRMI1N0kynUGr+Ud3\n   rc+otkD1iDCK72CFO/vbfhEKcuVX3t1av1IO6NqWLVnvloPVbeIyd1mWD\n   qVTOotB1j6iqqGuoV/RGHI8A2nVC1wYdsUcCg7/RKEK5Q34Da9B7AvXon\n   WAcwEeMl3pkkXw7IXG5RtP02iLK5E41reldo4PO51Kw3Oi7bGHI33uKdB\n   A==;",
        "X-CSE-ConnectionGUID": [
            "La2GhVC4R2CxXyvnSpJSZw==",
            "5Wxn3kxaSMiU9A0qp47Zcg=="
        ],
        "X-CSE-MsgGUID": [
            "vCXAag7FQe207a+ZGIWTxw==",
            "SE6lrUwIRuKuzbGOxcD7Qg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11770\"; a=\"78101785\"",
            "E=Sophos;i=\"6.23,206,1770624000\";\n   d=\"scan'208\";a=\"78101785\"",
            "E=Sophos;i=\"6.23,206,1770624000\";\n   d=\"scan'208\";a=\"234512137\""
        ],
        "X-ExtLoop1": "1",
        "From": "=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>",
        "To": "linux-pci@vger.kernel.org,\n\tBjorn Helgaas <bhelgaas@google.com>,\n\tShawn Jin <shawn.jin@asteralabs.com>,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tNicholas Piggin <npiggin@gmail.com>,\n\tlinux-kernel@vger.kernel.org",
        "Cc": "=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>",
        "Subject": "[PATCH 04/11] PCI: Remove const removal cast",
        "Date": "Wed, 29 Apr 2026 15:26:10 +0300",
        "Message-Id": "<20260429122617.7324-5-ilpo.jarvinen@linux.intel.com>",
        "X-Mailer": "git-send-email 2.39.5",
        "In-Reply-To": "<20260429122617.7324-1-ilpo.jarvinen@linux.intel.com>",
        "References": "<20260429122617.7324-1-ilpo.jarvinen@linux.intel.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "__pci_bridge_assign_resources() inputs const pci_dev *bridge, but then\nimmediately casts const away to pass the bridge to\npdev_assign_resources_sorted().\n\nAs pdev_assign_resources_sorted() performs assignment of resources, it\nis not possible to make its input parameter to const. Neither of the\n__pci_bridge_assign_resources() callers requires the bridge parameter\nto be const.\n\nThus, simply remove the out of place cast and convert the input\nparameter to non-const.\n\nSigned-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>\n---\n drivers/pci/setup-bus.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c\nindex 1e0e28efe8b8..c0a949f2c995 100644\n--- a/drivers/pci/setup-bus.c\n+++ b/drivers/pci/setup-bus.c\n@@ -1622,14 +1622,13 @@ void pci_bus_claim_resources(struct pci_bus *b)\n }\n EXPORT_SYMBOL(pci_bus_claim_resources);\n \n-static void __pci_bridge_assign_resources(const struct pci_dev *bridge,\n+static void __pci_bridge_assign_resources(struct pci_dev *bridge,\n \t\t\t\t\t  struct list_head *add_list,\n \t\t\t\t\t  struct list_head *fail_head)\n {\n \tstruct pci_bus *b;\n \n-\tpdev_assign_resources_sorted((struct pci_dev *)bridge,\n-\t\t\t\t     add_list, fail_head);\n+\tpdev_assign_resources_sorted(bridge, add_list, fail_head);\n \n \tb = bridge->subordinate;\n \tif (!b)\n",
    "prefixes": [
        "04/11"
    ]
}