Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2221812/?format=api
{ "id": 2221812, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221812/?format=api", "web_url": "http://patchwork.ozlabs.org/project/sparclinux/patch/20260410120317.709923681@kernel.org/", "project": { "id": 10, "url": "http://patchwork.ozlabs.org/api/1.2/projects/10/?format=api", "name": "Linux SPARC Development ", "link_name": "sparclinux", "list_id": "sparclinux.vger.kernel.org", "list_email": "sparclinux@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260410120317.709923681@kernel.org>", "list_archive_url": null, "date": "2026-04-10T12:18:37", "name": "[02/38] x86: Cleanup include recursion hell", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "197c6d776fea6d49e2b7a2901aa384b8aabb5cd2", "submitter": { "id": 92397, "url": "http://patchwork.ozlabs.org/api/1.2/people/92397/?format=api", "name": "Thomas Gleixner", "email": "tglx@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/sparclinux/patch/20260410120317.709923681@kernel.org/mbox/", "series": [ { "id": 499450, "url": "http://patchwork.ozlabs.org/api/1.2/series/499450/?format=api", "web_url": "http://patchwork.ozlabs.org/project/sparclinux/list/?series=499450", "date": "2026-04-10T12:18:27", "name": "treewide: Cleanup LATCH, CLOCK_TICK_RATE and get_cycles() [ab]use", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499450/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221812/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221812/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=lWWh=CJ=vger.kernel.org=sparclinux+bounces-6650-patchwork-incoming=ozlabs.org@ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "sparclinux@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=nWtTU/8b;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=lwwh=cj=vger.kernel.org=sparclinux+bounces-6650-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c04:e001:36c::12fc:5321\"\n 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=nWtTU/8b;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=sparclinux+bounces-6650-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=\"nWtTU/8b\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\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 4fsbVP3b3pz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 22:20:29 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fsbVP38XVz4x1q\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 22:20:29 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4fsbVP35Yjz4wsQ; Fri, 10 Apr 2026 22:20:29 +1000 (AEST)", "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::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 gandalf.ozlabs.org (Postfix) with ESMTPS id 4fsbVK722Wz4x2H\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 10 Apr 2026 22:20:25 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 1741D304F222\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 10 Apr 2026 12:19:01 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 956343BED76;\n\tFri, 10 Apr 2026 12:18:41 +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 6CC5022F74A;\n\tFri, 10 Apr 2026 12:18:41 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 34709C2BC87;\n\tFri, 10 Apr 2026 12:18:40 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775823629; cv=pass;\n\tb=HSxbjZZx2v345OaEmlkj6AnPvMzSdUhOTVHI493WgAr8gAvDbkEKyu8BuPkgS/s9HuVtG+LZyKXmkfF4n9ZBr3E8i2rTX6QFzRy/2h7acCPvAyK2ZdcFN+TwdjKqvbArDAY1ZXcvqtzJ0UYDl3filUU6gppytmZze95yBIGatR8FgAcjXCCjir3zBxTEUxM8OkQ1qbH2AREp+blc1QDb907H0kdXvweg2Kn74+3x0MjuoZIbv0P7Ibfqw9Cefbe9uqzaBU0cLSN3EU4vH97x1FHlCkQs8b+T8WuMybfn14wppbAthafmnWiOScgfiCglU6F4i9EczAestDcf2+pWjA==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775823521; cv=none;\n b=rqDXxwY3QsOmPxBqBxDSsmhaXwcybcXv/3KOpb/6EIz2tuKNLb4AWC5MsAFvGRMc3DmKLvXua4qll058VjQtjbXjBsckGEggreaz7GySGURrrtDu1efcZpD3BFkUsj8N719z3W40UJ31h5HFouj8iazoTDUi/mzmhvobvrrzonI=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775823629; c=relaxed/relaxed;\n\tbh=1svmJ9bLZm6y7AkRgd4KZ3wMzChgI+aIwiw2S8Q7kUs=;\n\th=Date:Message-ID:From:To:Subject:References:MIME-Version:\n\t Content-Type:cc;\n b=UJUI/lER9ZLqtTQDLgvsT5wFLPH+hTouQ0gj5a5u8Boh1qbowAnMZgFeI11DU9HLFxuvTD/LBjronGmdVPXXgyVFd3DfVvttxbXU6zgbCkyyKgUJMiE4/XjC8QUBDQpOoieVpEBvFgi74CWqfApjxNzxN4xmeBZAWqVe9Xaj7Zu2qwz41cweEfsthw2WUntj6KttfR3309T7b20teg5afoMMhw5OXXQS2IVgokgcT71Vv42AlkdvDtbaazLIWAvyHIALyDU8mJ45rVtak8ErizmcJEctWDvC/J7NyEu2g3BXDttNZl1qK9ot/3Ccw2ZSTRXVgE/vwS5IJWScbsOuHQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775823521; c=relaxed/simple;\n\tbh=jM+JreNQ/pvWEKCuy6rQc5u1kgCA5N5UN7yUgNovu14=;\n\th=Date:Message-ID:From:To:Subject:References:MIME-Version:\n\t Content-Type:cc;\n b=HMORE5MdVT7OUsMYXeSSOHyQyRGbVAkusslY/N2X6eNYxnSlcZ9E2C/zyzGJC0KiLhwLaVUIyJZDZLGzNurhPeyXlkclrFbMGa2T3VwVLlPxs+wYOC2K5ot7lbmbHodkrkhaKZf7pX5pKeBn4HZIFGl66vzqwQz31Z8Z1+cXx+g=" ], "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=nWtTU/8b; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=sparclinux+bounces-6650-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=nWtTU/8b; 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=1775823521;\n\tbh=jM+JreNQ/pvWEKCuy6rQc5u1kgCA5N5UN7yUgNovu14=;\n\th=Date:From:To:Subject:References:cc:From;\n\tb=nWtTU/8bYflAI0sVDZCcTSRoMHHBafK4f8aE8OQUIADFXrWn3gkAS6D8iyeDcGytD\n\t IkAJ7wfDdphIDTv0/p2VgJLmG6txpPJj7VHjB28F0wfKCyzE07p6hHvScSQ/hPg40n\n\t m5UonCXCWoABi9Y1P5pL07/VfBtvxj5IX/qtz/8nDDpNNssj+hm09ux1rli9d/5Kp7\n\t u2W39VabHnp7xFO01m/Vf4vbZzsQaYVQbm/v4/bBGJXSthxziJGUNQp6cLMMBeBrVY\n\t Rxdzr0TBEmAzR1XxM10SdBatX0CJ8cwLuQKU2F/sGImGk9kogedHCPTsKBS8t/RjVc\n\t cuRhduaM+Iuqw==", "Date": "Fri, 10 Apr 2026 14:18:37 +0200", "Message-ID": "<20260410120317.709923681@kernel.org>", "User-Agent": "quilt/0.68", "From": "Thomas Gleixner <tglx@kernel.org>", "To": "LKML <linux-kernel@vger.kernel.org>", "Subject": "[patch 02/38] x86: Cleanup include recursion hell", "References": "<20260410120044.031381086@kernel.org>", "Precedence": "bulk", "X-Mailing-List": "sparclinux@vger.kernel.org", "List-Id": "<sparclinux.vger.kernel.org>", "List-Subscribe": "<mailto:sparclinux+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:sparclinux+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "cc": "Arnd Bergmann <arnd@arndb.de>,\n x86@kernel.org,\n Lu Baolu <baolu.lu@linux.intel.com>,\n iommu@lists.linux.dev,\n Michael Grzeschik <m.grzeschik@pengutronix.de>,\n netdev@vger.kernel.org,\n linux-wireless@vger.kernel.org,\n Herbert Xu <herbert@gondor.apana.org.au>,\n linux-crypto@vger.kernel.org,\n Vlastimil Babka <vbabka@kernel.org>,\n linux-mm@kvack.org,\n David Woodhouse <dwmw2@infradead.org>,\n Bernie Thompson <bernie@plugable.com>,\n linux-fbdev@vger.kernel.org,\n \"Theodore Tso\" <tytso@mit.edu>,\n linux-ext4@vger.kernel.org,\n Andrew Morton <akpm@linux-foundation.org>,\n Uladzislau Rezki <urezki@gmail.com>,\n Marco Elver <elver@google.com>,\n Dmitry Vyukov <dvyukov@google.com>,\n kasan-dev@googlegroups.com,\n Andrey Ryabinin <ryabinin.a.a@gmail.com>,\n Thomas Sailer <t.sailer@alumni.ethz.ch>,\n linux-hams@vger.kernel.org,\n \"Jason A. Donenfeld\" <Jason@zx2c4.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n linux-alpha@vger.kernel.org,\n Russell King <linux@armlinux.org.uk>,\n linux-arm-kernel@lists.infradead.org,\n Catalin Marinas <catalin.marinas@arm.com>,\n Huacai Chen <chenhuacai@kernel.org>,\n loongarch@lists.linux.dev,\n Geert Uytterhoeven <geert@linux-m68k.org>,\n linux-m68k@lists.linux-m68k.org,\n Dinh Nguyen <dinguyen@kernel.org>,\n Jonas Bonn <jonas@southpole.se>,\n linux-openrisc@vger.kernel.org,\n Helge Deller <deller@gmx.de>,\n linux-parisc@vger.kernel.org,\n Michael Ellerman <mpe@ellerman.id.au>,\n linuxppc-dev@lists.ozlabs.org,\n Paul Walmsley <pjw@kernel.org>,\n linux-riscv@lists.infradead.org,\n Heiko Carstens <hca@linux.ibm.com>,\n linux-s390@vger.kernel.org,\n \"David S. Miller\" <davem@davemloft.net>,\n sparclinux@vger.kernel.org", "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": "Including a random architecture specific header which requires global\nheaders just to avoid including that header at the two usage sites is\nreally beyond lazy and tasteless. Including global headers just to get the\n__percpu macro from linux/compiler_types.h falls into the same category.\n\nRemove the linux/percpu.h and asm/cpumask.h includes from msr.h and smp.h\nand fix the resulting fallout by a simple forward struct declaration and by\nincluding the x86 specific asm/cpumask.h header where it is actually\nrequired.\n\nSigned-off-by: Thomas Gleixner <tglx@kernel.org>\n---\n arch/x86/include/asm/msr.h | 5 +++--\n arch/x86/include/asm/pvclock.h | 1 +\n arch/x86/include/asm/smp.h | 2 --\n arch/x86/include/asm/vdso/gettimeofday.h | 5 ++---\n arch/x86/kernel/cpu/mce/core.c | 1 +\n arch/x86/kernel/nmi.c | 1 +\n arch/x86/kernel/smpboot.c | 1 +\n 7 files changed, 9 insertions(+), 7 deletions(-)", "diff": "--- a/arch/x86/include/asm/msr.h\n+++ b/arch/x86/include/asm/msr.h\n@@ -8,12 +8,11 @@\n \n #include <asm/asm.h>\n #include <asm/errno.h>\n-#include <asm/cpumask.h>\n #include <uapi/asm/msr.h>\n #include <asm/shared/msr.h>\n \n+#include <linux/compiler_types.h>\n #include <linux/types.h>\n-#include <linux/percpu.h>\n \n struct msr_info {\n \tu32\t\t\tmsr_no;\n@@ -256,6 +255,8 @@ int msr_set_bit(u32 msr, u8 bit);\n int msr_clear_bit(u32 msr, u8 bit);\n \n #ifdef CONFIG_SMP\n+struct cpumask;\n+\n int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);\n int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);\n int rdmsrq_on_cpu(unsigned int cpu, u32 msr_no, u64 *q);\n--- a/arch/x86/include/asm/pvclock.h\n+++ b/arch/x86/include/asm/pvclock.h\n@@ -2,6 +2,7 @@\n #ifndef _ASM_X86_PVCLOCK_H\n #define _ASM_X86_PVCLOCK_H\n \n+#include <asm/barrier.h>\n #include <asm/clocksource.h>\n #include <asm/pvclock-abi.h>\n \n--- a/arch/x86/include/asm/smp.h\n+++ b/arch/x86/include/asm/smp.h\n@@ -5,8 +5,6 @@\n #include <linux/cpumask.h>\n #include <linux/thread_info.h>\n \n-#include <asm/cpumask.h>\n-\n DECLARE_PER_CPU_CACHE_HOT(int, cpu_number);\n \n DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);\n--- a/arch/x86/include/asm/vdso/gettimeofday.h\n+++ b/arch/x86/include/asm/vdso/gettimeofday.h\n@@ -11,13 +11,12 @@\n #define __ASM_VDSO_GETTIMEOFDAY_H\n \n #ifndef __ASSEMBLER__\n-\n+#include <clocksource/hyperv_timer.h>\n #include <uapi/linux/time.h>\n+\n #include <asm/vgtod.h>\n #include <asm/unistd.h>\n-#include <asm/msr.h>\n #include <asm/pvclock.h>\n-#include <clocksource/hyperv_timer.h>\n #include <asm/vdso/sys_call.h>\n \n #define VDSO_HAS_TIME 1\n--- a/arch/x86/kernel/cpu/mce/core.c\n+++ b/arch/x86/kernel/cpu/mce/core.c\n@@ -48,6 +48,7 @@\n #include <linux/vmcore_info.h>\n \n #include <asm/fred.h>\n+#include <asm/cpumask.h>\n #include <asm/cpu_device_id.h>\n #include <asm/processor.h>\n #include <asm/traps.h>\n--- a/arch/x86/kernel/nmi.c\n+++ b/arch/x86/kernel/nmi.c\n@@ -26,6 +26,7 @@\n #include <linux/sched/clock.h>\n #include <linux/kvm_types.h>\n \n+#include <asm/cpumask.h>\n #include <asm/cpu_entry_area.h>\n #include <asm/traps.h>\n #include <asm/mach_traps.h>\n--- a/arch/x86/kernel/smpboot.c\n+++ b/arch/x86/kernel/smpboot.c\n@@ -70,6 +70,7 @@\n #include <asm/irq.h>\n #include <asm/realmode.h>\n #include <asm/cpu.h>\n+#include <asm/cpumask.h>\n #include <asm/numa.h>\n #include <asm/tlbflush.h>\n #include <asm/mtrr.h>\n", "prefixes": [ "02/38" ] }