Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2215463/?format=api
{ "id": 2215463, "url": "http://patchwork.ozlabs.org/api/patches/2215463/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260324165633.4583-4-ilpo.jarvinen@linux.intel.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/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": "<20260324165633.4583-4-ilpo.jarvinen@linux.intel.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260324165633.4583-4-ilpo.jarvinen@linux.intel.com/", "date": "2026-03-24T16:56:26", "name": "[03/10] resource: Rename 'tmp' variable to 'full_avail'", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "archived": false, "hash": "dea40e410006ea67cfacbec71afd4a872f26bcd6", "submitter": { "id": 83553, "url": "http://patchwork.ozlabs.org/api/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/20260324165633.4583-4-ilpo.jarvinen@linux.intel.com/mbox/", "series": [ { "id": 497317, "url": "http://patchwork.ozlabs.org/api/series/497317/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497317", "date": "2026-03-24T16:56:23", "name": "PCI: Improve head free space usage", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497317/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2215463/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2215463/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-18729-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=V/8ZH+Ba;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-18729-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=198.175.65.13", "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=V/8ZH+Ba;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.intel.com\n (client-ip=198.175.65.13; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\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 4fgGV02813z1y1g\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 03:59:20 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fgGV013Knz2ynv;\n\tWed, 25 Mar 2026 03:59:20 +1100 (AEDT)", "from mgamail.intel.com (mgamail.intel.com [198.175.65.13])\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 4fgGTz121rz2yng\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 25 Mar 2026 03:59:18 +1100 (AEDT)", "from orviesa007.jf.intel.com ([10.64.159.147])\n by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Mar 2026 09:59:17 -0700", "from ijarvine-mobl1.ger.corp.intel.com (HELO localhost)\n ([10.245.244.217])\n by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 24 Mar 2026 09:59:07 -0700" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774371560;\n\tcv=none;\n b=LecH4jKg2vUvZtkKgeAcAJlgkwoo4UhQlihQ2FdT/EQ0TDf0Yqh70YFEWQd/H6j4oueCkSz8zAMUyno2Na1v7uBZhuzs+4AHCdpc3m6Fj4jMRjEzuT/oL1qDNs1BAbPmbUxOT8Aug//q+2y5DYT+Zli2tRTYlAkBmVihj0glqpEsOZv61DTHhQAfpmIiTDp7do0KJzxnewDklH4unq7YYTm6kSzFuu//ASpTIvjV1e734JWjXQjQuYcVLacbR81U4s/0UxG1CoszHc16yyk3WPJ6eGFcWV9vhk7EIxP9q4LT9aLbQY8cOpN9MXefe0MvA2fGCM9IaBAVHa1X6LdMjQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774371560; c=relaxed/relaxed;\n\tbh=TtPJfOS6ybRUYylo/bLt96EKp7yLEhb5rsHoucJB9QI=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=Ff8mfLr0uYgYJPx6U34QKkvyhgrka+GtaV1zn3FxEvPOsUbKjqz1YfjeROlaMG8KFclrOk/QqOSA4GyBruSo5yccMU1P9znr6D9uZwFl1/Y1kXaTAZ1DvL/Hh0UbuFhxpoGMw3V/QAieTZIMe8EsfFTR4ntmnSzTy/k1iUhPUXuI3nUgxdKVzzzkUPdOHYmzgvx5QRM5HgP2w/jLY1nKoF1yZj4322+w+qJrvZpdMIxXnycegAZv47SFj5E/+ABx2K5bIPnSw0Q8TV9gnVtpZWmbpjOiKvMDa+6qe9pfqL/Q0Na711Ogl/HVSx0Cu7ZCZmSDVmy3PcRtK+P1BBkoxg==", "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=V/8ZH+Ba; dkim-atps=neutral;\n spf=pass (client-ip=198.175.65.13; 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=1774371559; x=1805907559;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=4wZaEWcRmOK6fFyQu8mcl48M7LLtMpZtBEYXsd1Cc4E=;\n b=V/8ZH+BaDVsbPovTcc/Poq/kTAzFx1IveeVlLF9Ak7MHlAyBmfRr/cqV\n ZH9i4dW4dt11ieyFkZ0oUsJXaZELg1r+VZsEFnx/zGKanvPq/tTKUoSo9\n StIC3UYTiT5wd14tjffT4E5Q/9lhF+BknUVe02I4QvZHh7Y8ua08pGMyD\n 25nanBMe5wdZm+54Tq9Y/ovfQULO4pE9WbBbv2W7m6WRyydjvvHSqjKF8\n fh2z6s1NMB4LaJv3aHwk+HGYWwAZhNYgNywD6efqflFOdFyy4W3kKL/A3\n EZzUEmpYnmtKthffdSWLx3Rw4Ald+fuJk0K2iJ5TB63DFY3e7EvCIyUK3\n A==;", "X-CSE-ConnectionGUID": [ "fSQ1PLQbRB2h3GEzzLrrFA==", "b26LCQzsTZi2fIETMNneag==" ], "X-CSE-MsgGUID": [ "NdKpZY4ZTFOxPeQG2cmFQQ==", "WA0Ub946SXOBfg0OV/eeeg==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6800,10657,11739\"; a=\"86471768\"", "E=Sophos;i=\"6.23,138,1770624000\";\n d=\"scan'208\";a=\"86471768\"", "E=Sophos;i=\"6.23,138,1770624000\";\n d=\"scan'208\";a=\"224666273\"" ], "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\tGuenter Roeck <linux@roeck-us.net>,\n\tlinux-alpha@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org,\n\tlinux-m68k@lists.linux-m68k.org,\n\tlinux-mips@vger.kernel.org,\n\tlinux-parisc@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-s390@vger.kernel.org,\n\tlinux-sh@vger.kernel.org,\n\tRussell King <linux@armlinux.org.uk>,\n\tGeert Uytterhoeven <geert@linux-m68k.org>,\n\tThomas Bogendoerfer <tsbogend@alpha.franken.de>,\n\t\"James E.J. Bottomley\" <James.Bottomley@HansenPartnership.com>,\n\tHelge Deller <deller@gmx.de>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tThomas Gleixner <tglx@kernel.org>,\n\tIngo Molnar <mingo@redhat.com>,\n\tBorislav Petkov <bp@alien8.de>,\n\tDave Hansen <dave.hansen@linux.intel.com>,\n\t\"H. Peter Anvin\" <hpa@zytor.com>,\n\tChris Zankel <chris@zankel.net>,\n\tMax Filippov <jcmvbkbc@gmail.com>,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>,\n\tYoshinori Sato <ysato@users.sourceforge.jp>,\n\tRich Felker <dalias@libc.org>,\n\tJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,\n\tlinux-kernel@vger.kernel.org", "Cc": "=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>", "Subject": "[PATCH 03/10] resource: Rename 'tmp' variable to 'full_avail'", "Date": "Tue, 24 Mar 2026 18:56:26 +0200", "Message-Id": "<20260324165633.4583-4-ilpo.jarvinen@linux.intel.com>", "X-Mailer": "git-send-email 2.39.5", "In-Reply-To": "<20260324165633.4583-1-ilpo.jarvinen@linux.intel.com>", "References": "<20260324165633.4583-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": "__find_resource_space() has variable called 'tmp'. Rename it to\n'full_avail' to better indicate its purpose.\n\nSigned-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>\n---\n kernel/resource.c | 28 ++++++++++++++--------------\n 1 file changed, 14 insertions(+), 14 deletions(-)", "diff": "diff --git a/kernel/resource.c b/kernel/resource.c\nindex 1b8d3101bdc6..8c5fcb30fc33 100644\n--- a/kernel/resource.c\n+++ b/kernel/resource.c\n@@ -727,39 +727,39 @@ static int __find_resource_space(struct resource *root, struct resource *old,\n \t\t\t\t struct resource_constraint *constraint)\n {\n \tstruct resource *this = root->child;\n-\tstruct resource tmp = *new, avail, alloc;\n+\tstruct resource full_avail = *new, avail, alloc;\n \tresource_alignf alignf = constraint->alignf;\n \n-\ttmp.start = root->start;\n+\tfull_avail.start = root->start;\n \t/*\n \t * Skip past an allocated resource that starts at 0, since the assignment\n-\t * of this->start - 1 to tmp->end below would cause an underflow.\n+\t * of this->start - 1 to full_avail->end below would cause an underflow.\n \t */\n \tif (this && this->start == root->start) {\n-\t\ttmp.start = (this == old) ? old->start : this->end + 1;\n+\t\tfull_avail.start = (this == old) ? old->start : this->end + 1;\n \t\tthis = this->sibling;\n \t}\n \tfor(;;) {\n \t\tif (this)\n-\t\t\ttmp.end = (this == old) ? this->end : this->start - 1;\n+\t\t\tfull_avail.end = (this == old) ? this->end : this->start - 1;\n \t\telse\n-\t\t\ttmp.end = root->end;\n+\t\t\tfull_avail.end = root->end;\n \n-\t\tif (tmp.end < tmp.start)\n+\t\tif (full_avail.end < full_avail.start)\n \t\t\tgoto next;\n \n-\t\tresource_clip(&tmp, constraint->min, constraint->max);\n-\t\tarch_remove_reservations(&tmp);\n+\t\tresource_clip(&full_avail, constraint->min, constraint->max);\n+\t\tarch_remove_reservations(&full_avail);\n \n \t\t/* Check for overflow after ALIGN() */\n-\t\tavail.start = ALIGN(tmp.start, constraint->align);\n-\t\tavail.end = tmp.end;\n+\t\tavail.start = ALIGN(full_avail.start, constraint->align);\n+\t\tavail.end = full_avail.end;\n \t\tavail.flags = new->flags;\n-\t\tif (avail.start >= tmp.start) {\n+\t\tif (avail.start >= full_avail.start) {\n \t\t\talloc.flags = avail.flags;\n \t\t\tif (alignf) {\n \t\t\t\talloc.start = alignf(constraint->alignf_data,\n-\t\t\t\t\t\t &avail, &tmp,\n+\t\t\t\t\t\t &avail, &full_avail,\n \t\t\t\t\t\t size, constraint->align);\n \t\t\t} else {\n \t\t\t\talloc.start = avail.start;\n@@ -777,7 +777,7 @@ next:\t\tif (!this || this->end == root->end)\n \t\t\tbreak;\n \n \t\tif (this != old)\n-\t\t\ttmp.start = this->end + 1;\n+\t\t\tfull_avail.start = this->end + 1;\n \t\tthis = this->sibling;\n \t}\n \treturn -EBUSY;\n", "prefixes": [ "03/10" ] }