Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2230186/?format=api
{ "id": 2230186, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2230186/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260429122617.7324-6-ilpo.jarvinen@linux.intel.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/1.2/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20260429122617.7324-6-ilpo.jarvinen@linux.intel.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260429122617.7324-6-ilpo.jarvinen@linux.intel.com/", "date": "2026-04-29T12:26:11", "name": "[05/11] resource: Make resource_alignment() input const resource", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "archived": false, "hash": "7fef98f373b7dec1b00b020c63f2865e5309e20f", "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/linuxppc-dev/patch/20260429122617.7324-6-ilpo.jarvinen@linux.intel.com/mbox/", "series": [ { "id": 502049, "url": "http://patchwork.ozlabs.org/api/1.2/series/502049/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=502049", "date": "2026-04-29T12:26:06", "name": "PCI: pci_resource_alignment() improvement + cleanups", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502049/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2230186/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2230186/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-20281-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.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=HF5EEm2c;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-20281-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=198.175.65.20", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com", "lists.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=HF5EEm2c;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.intel.com\n (client-ip=198.175.65.20; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\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 4g5Glj1N7Kz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 22:27:29 +1000 (AEST)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g5Glj0NtJz2ytV;\n\tWed, 29 Apr 2026 22:27:29 +1000 (AEST)", "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 lists.ozlabs.org (Postfix) with ESMTPS id 4g5Glg2K3xz2yqq\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 29 Apr 2026 22:27:26 +1000 (AEST)", "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:24 -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:20 -0700" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777465648;\n\tcv=none;\n b=bM2r0NwCxUfiSbeI/derza8W6xcZL+pwZre7C65+aUkPuZ+H+U0erssCDG0l+4GWOBkfoYntpVncvXFHWIgHvS540oUCp72O+MaJ7+DJ9SjXIbS4ZFq7BHrElonZzAHRH4RH1SuaPGyhKEYUneclA7AIlmRUjHCQeaEI0qs5x7JQFLZcm4OOELUjeQooGbrTA+XhD46WD7VZ2M+ObNBYVzl7e+ajJf7dZ2+qu+R7tBt+lhuqoYOiMcCZD4SsZyWL5ifyrYEUJNc/OpW7zSZWPcjK6OrEi11afVLbF+S/zjqjWtEF/kifYJYM+yR5rpOjnRMlUKzHUaQqxeES6UYCWQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777465648; c=relaxed/relaxed;\n\tbh=hySTdbv4km3hxPKl5G4LByk6HgkUM8thYPdMgG32wUQ=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=AmnYwMXvycoNmeRbbsynRHZpV4sZtxF8P+lEaV/km2tPmrKgvA+Dbj5KJjNcqGRNv3HpuQ9esR7xn7s9C43RXZRrgydbs831pjocoCJ9TfqCEdT9oqg0s6oC9X1wBxmRwp7lbNZlZuS4eW5mScyLbp9BvzqNuR6+qJO4EgAikVrZGy/Xqcg/SGPdQZ2/Y7jNRRFFL/w+oYBh+VM26XEN89iLMTv+xFseSljLGqq6WjPOEi+GBQ7TIzcTMaj7HUecAgKyzILMkRL6lyk8kGCoUXsxtgMdrCHJ+Vkowy7NnqZXzPbWyolpfWY8csdArGrGviiatoM0C96r05MFJyIttA==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=HF5EEm2c; dkim-atps=neutral;\n spf=pass (client-ip=198.175.65.20; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.intel.com", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1777465648; x=1809001648;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=8VXJ5q9tWKaV2T92TCmAxPMeclranQN4ydQ0uXeo4AY=;\n b=HF5EEm2c0XyfT459TWnIkkqlkASb+utf2jA6xy85sJh0S8SZEF0on7Vq\n gVLnRFkrZ4ZMycL69eSkLhJSi/jac5hEs0WS7TAY4W8WZdL5R6z09Wu96\n 7cRKrKGFCPLa5TF8uvkUR5rgSO3UXh7JB0dYXQ9eaOj37hznIxFJ9EmmF\n YWpDfJ7xR+W2NB2fZAtP0MvHtVlkVTZndzmP4T4JmPHaup3bx+WeBvMZS\n 7fva9hyJV/cOf2PMrJFjmKjB5OGnU3fGJvnakfsJEglXb0M9TWp4UhtP0\n /6PI8U+5mDc6WXipz3WBLraOhw9EtAV51Zj2WlK94WySKeTHdQ4fEF1Ia\n g==;", "X-CSE-ConnectionGUID": [ "RXmB/SMZSKaa1h1cZWdosQ==", "Jgvu4VG+RDuYkRSRGmchNQ==" ], "X-CSE-MsgGUID": [ "nFxudI/bTI+sxSjAr4ldjA==", "ccCDbeE2TSqj2vquDJN+4g==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6800,10657,11770\"; a=\"78101805\"", "E=Sophos;i=\"6.23,206,1770624000\";\n d=\"scan'208\";a=\"78101805\"", "E=Sophos;i=\"6.23,206,1770624000\";\n d=\"scan'208\";a=\"234512170\"" ], "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 05/11] resource: Make resource_alignment() input const\n resource", "Date": "Wed, 29 Apr 2026 15:26:11 +0300", "Message-Id": "<20260429122617.7324-6-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>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-Spam-Status": "No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "resource_alignment() does not need to change resource so it can be\nmade const.\n\nSigned-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>\n---\n include/linux/ioport.h | 2 +-\n kernel/resource.c | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/include/linux/ioport.h b/include/linux/ioport.h\nindex 3c73c9c0d4f7..f7930b3dfd0a 100644\n--- a/include/linux/ioport.h\n+++ b/include/linux/ioport.h\n@@ -261,7 +261,7 @@ extern int allocate_resource(struct resource *root, struct resource *new,\n struct resource *lookup_resource(struct resource *root, resource_size_t start);\n int adjust_resource(struct resource *res, resource_size_t start,\n \t\t resource_size_t size);\n-resource_size_t resource_alignment(struct resource *res);\n+resource_size_t resource_alignment(const struct resource *res);\n \n /**\n * resource_set_size - Calculate resource end address from size and start\ndiff --git a/kernel/resource.c b/kernel/resource.c\nindex d02a53fb95d8..3d17e3196a3e 100644\n--- a/kernel/resource.c\n+++ b/kernel/resource.c\n@@ -1238,7 +1238,7 @@ reserve_region_with_split(struct resource *root, resource_size_t start,\n *\n * Returns alignment on success, 0 (invalid alignment) on failure.\n */\n-resource_size_t resource_alignment(struct resource *res)\n+resource_size_t resource_alignment(const struct resource *res)\n {\n \tswitch (res->flags & (IORESOURCE_SIZEALIGN | IORESOURCE_STARTALIGN)) {\n \tcase IORESOURCE_SIZEALIGN:\n", "prefixes": [ "05/11" ] }