get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230199,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2230199/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260429122617.7324-9-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-9-ilpo.jarvinen@linux.intel.com>",
    "list_archive_url": null,
    "date": "2026-04-29T12:26:14",
    "name": "[08/11] PCI: Convert pci_resource_alignment() input parameters to const",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c9c8b3983834ef0ad8f81ef05e542c5ad4f16854",
    "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-9-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/2230199/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230199/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-53393-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=K/lPdyrP;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-pci+bounces-53393-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=\"K/lPdyrP\"",
            "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 sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\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 legolas.ozlabs.org (Postfix) with ESMTPS id 4g5Gpf0fRzz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 22:30:02 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 95CEE3014577\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 12:28:04 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C432B3BA252;\n\tWed, 29 Apr 2026 12:28:03 +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 29B613A7F7E;\n\tWed, 29 Apr 2026 12:28:01 +0000 (UTC)",
            "from fmviesa002.fm.intel.com ([10.60.135.142])\n  by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Apr 2026 05:28:02 -0700",
            "from ijarvine-mobl1.ger.corp.intel.com (HELO localhost)\n ([10.245.245.212])\n  by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Apr 2026 05:27:58 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777465683; cv=none;\n b=iVTygNFXlYwTvLweEjn89OMlb8sGNeFf2oRD1+xosqX/3G09+L35s6j80RV2j29+wVYQ5zaZ1FuumF/MauVr7dVKBRf8OAl82x0zaWqR7CDfbBPg0gQVoXmOlypF+75+/tEmXz7HBcjT0KWZ1EnkJuFhkVAfTPy/rhgRFbVKoOw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777465683; c=relaxed/simple;\n\tbh=fw+Loat2qyLgqvGvG/Jk0dbdhzaYJWuE1SAW/SPTWpo=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=dmi1bYyzl3sCalE43efjjugCcb7+JxLb9RaZzTgvv1Yp8CgWVTHNpvGpO9l35hOBrUi78yzBp+ztOfsyKMbcdP3966Rpn7CEUmxAJotfo7hS55OcALvhJMzkmDgezL3+PgTSQaKmgWkqkwLvMr/fAaN9JozbpTllm2WFFhF02gM=",
        "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=K/lPdyrP; 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=1777465682; x=1809001682;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=fw+Loat2qyLgqvGvG/Jk0dbdhzaYJWuE1SAW/SPTWpo=;\n  b=K/lPdyrPvfv/drtvGpqkFPX+8TRzIDINuRFqLaWMeACU+BIa+Qi5CSxP\n   fl20hTs+x2+4m5x+C4imRpGvgCVMthQAfBySApvI8fV14/WHgRbWVANPA\n   Cw1vmstD6N3CZHfaj5AW9RxwBZmpZKn51GeliG9x0M1MHsslfabsPyH1H\n   wyiqOikHOj6IoObaycImhxKWvpWnu6pwhauRLIpFjzX038ouYilhqUAxn\n   FqMt783lRSR77+xqIXrqTDuhMtF841tt7jo1cnUKWNLcTVnK5N+0bwTkA\n   i+aBvkGxxD0YNmbC6HKDOfNHTN7VlwoVeBuhiHEIm+5l0wpiHMPpd9M4k\n   Q==;",
        "X-CSE-ConnectionGUID": [
            "ubrm0mXkQM+/x7sm4fiKyw==",
            "A2voe4hURxKRu6GvpKDDDg=="
        ],
        "X-CSE-MsgGUID": [
            "AWi0bEjkSnuI6K7tHB5ibA==",
            "zK9kVFhfSe2LF3GcQiLeoQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11770\"; a=\"78101853\"",
            "E=Sophos;i=\"6.23,206,1770624000\";\n   d=\"scan'208\";a=\"78101853\"",
            "E=Sophos;i=\"6.23,206,1770624000\";\n   d=\"scan'208\";a=\"257573702\""
        ],
        "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 08/11] PCI: Convert pci_resource_alignment() input parameters\n to const",
        "Date": "Wed, 29 Apr 2026 15:26:14 +0300",
        "Message-Id": "<20260429122617.7324-9-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_resource_alignment() calculates resource alignment and should not\nalter its input structs. Make its input parameters const.\n\nIt requires making also pci_cardbus_resource_alignment() input const.\n\nSigned-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>\n---\n drivers/pci/pci.h           | 8 ++++----\n drivers/pci/setup-cardbus.c | 2 +-\n 2 files changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h\nindex 710803be3a79..e0fcc33dfef6 100644\n--- a/drivers/pci/pci.h\n+++ b/drivers/pci/pci.h\n@@ -419,7 +419,7 @@ static inline bool pci_is_cardbus_bridge(struct pci_dev *dev)\n \treturn dev->hdr_type == PCI_HEADER_TYPE_CARDBUS;\n }\n #ifdef CONFIG_CARDBUS\n-unsigned long pci_cardbus_resource_alignment(struct resource *res);\n+unsigned long pci_cardbus_resource_alignment(const struct resource *res);\n int pci_bus_size_cardbus_bridge(struct pci_bus *bus,\n \t\t\t\tstruct list_head *realloc_head);\n int pci_cardbus_scan_bridge_extend(struct pci_bus *bus, struct pci_dev *dev,\n@@ -428,7 +428,7 @@ int pci_cardbus_scan_bridge_extend(struct pci_bus *bus, struct pci_dev *dev,\n int pci_setup_cardbus(char *str);\n \n #else\n-static inline unsigned long pci_cardbus_resource_alignment(struct resource *res)\n+static inline unsigned long pci_cardbus_resource_alignment(const struct resource *res)\n {\n \treturn 0;\n }\n@@ -1044,8 +1044,8 @@ static inline void pci_suspend_ptm(struct pci_dev *dev) { }\n static inline void pci_resume_ptm(struct pci_dev *dev) { }\n #endif\n \n-static inline resource_size_t pci_resource_alignment(struct pci_dev *dev,\n-\t\t\t\t\t\t     struct resource *res)\n+static inline resource_size_t pci_resource_alignment(const struct pci_dev *dev,\n+\t\t\t\t\t\t     const struct resource *res)\n {\n \tint resno = pci_resource_num(dev, res);\n \ndiff --git a/drivers/pci/setup-cardbus.c b/drivers/pci/setup-cardbus.c\nindex 1ebd13a1f730..0cba404080ad 100644\n--- a/drivers/pci/setup-cardbus.c\n+++ b/drivers/pci/setup-cardbus.c\n@@ -22,7 +22,7 @@\n static unsigned long pci_cardbus_io_size = DEFAULT_CARDBUS_IO_SIZE;\n static unsigned long pci_cardbus_mem_size = DEFAULT_CARDBUS_MEM_SIZE;\n \n-unsigned long pci_cardbus_resource_alignment(struct resource *res)\n+unsigned long pci_cardbus_resource_alignment(const struct resource *res)\n {\n \tif (res->flags & IORESOURCE_IO)\n \t\treturn pci_cardbus_io_size;\n",
    "prefixes": [
        "08/11"
    ]
}