Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2222215/?format=api
{ "id": 2222215, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222215/?format=api", "web_url": "http://patchwork.ozlabs.org/project/sparclinux/patch/87ldeuzgaq.ffs@tglx/", "project": { "id": 10, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<87ldeuzgaq.ffs@tglx>", "date": "2026-04-10T20:55:25", "name": "[V1.1,02/38] x86: Cleanup include recursion hell", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "09649839c8def6d0f797e5b09be0681fa2d07d6a", "submitter": { "id": 92397, "url": "http://patchwork.ozlabs.org/api/1.1/people/92397/?format=api", "name": "Thomas Gleixner", "email": "tglx@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/sparclinux/patch/87ldeuzgaq.ffs@tglx/mbox/", "series": [ { "id": 499506, "url": "http://patchwork.ozlabs.org/api/1.1/series/499506/?format=api", "web_url": "http://patchwork.ozlabs.org/project/sparclinux/list/?series=499506", "date": "2026-04-10T20:55:25", "name": null, "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499506/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2222215/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2222215/checks/", "tags": {}, "headers": { "Return-Path": "\n <SRS0=Y4T6=CJ=vger.kernel.org=sparclinux+bounces-6691-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=uBb+aK4w;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=y4t6=cj=vger.kernel.org=sparclinux+bounces-6691-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c15:e001:75::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=uBb+aK4w;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=sparclinux+bounces-6691-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=\"uBb+aK4w\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fspwq0Fdqz1yGb\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 06:55:38 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fspwn4Nprz4wTb\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 06:55:37 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4fspwn4Htgz4wCm; Sat, 11 Apr 2026 06:55:37 +1000 (AEST)", "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::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 4fspwk34tkz4wTb\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 11 Apr 2026 06:55:34 +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 6497B300A582\n\tfor <patchwork-incoming@ozlabs.org>; Fri, 10 Apr 2026 20:55:32 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C892E3A6EEA;\n\tFri, 10 Apr 2026 20:55:29 +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 91D2B37F8C5;\n\tFri, 10 Apr 2026 20:55:29 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 25D0DC19421;\n\tFri, 10 Apr 2026 20:55:28 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775854537; cv=pass;\n\tb=s3UDPH4lxDCM1c4Zw4njwD9YjQtPtku2oc0NhSfgWMnPLT9Z0IRByNJZdNxVoDlDG5K0brJP7afUotvwMLLGhuEGPnM7J8juxPqo75W9RJE/jBJCSsXY25pmgi59HIr+L+XUxozIvD8zWrMEcboeCSgrZIcq9voSc9JMuVIfahJinpQ8L1/0nTIkngIM5sRkuFaucrbz45XWnJoW0PGsT4vUC1glmhw+nqGmGCp6IgG1hDW+1+01dxsopkdJ6773A5qx2IpzUPdcje7Ytaq99Oq4rv2jeNUVP3sgjSz87qBlUuQK6HOISHwyiyUX1szlCiieGHoxsmxg3AsKyQixiQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775854529; cv=none;\n b=SpiuEDxx354np/8mh7+pdNXetW0ks3Ls4PDmrLxPocr7P63k66hLR81zgJAwQv0db5flucmEggMOUVjvafIQae8JvaEgV5olflTMxZX4ZohpBtJWOEeApHi7QgvwlE7yZk34HXbxpZoBJFJmffwUdVLpXcghzU6ybxW15B6wyTc=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775854537; c=relaxed/relaxed;\n\tbh=EaKhODvxi/ucukRjiZOPM52dL9n0W3z89ySIPcNqMX0=;\n\th=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:\n\t MIME-Version:Content-Type;\n b=lEWPJUm7JXMqUduaY/CesVdrSjnnpXU/cVHrRlLHRFUPlRClNf7715/xxS8Ei7iFD7PU+wAJNsfPp1aV3UvqKG0oRNYSro+laAqmfToRllvQ9fVTBR3afN23yjegTk+cLOgQ5niHkpsIcDjA3gZgem8pvJzyvNnlGnpI0N5JN2z+OTkbWjZ3Y5mVHOHFv7aKFp3FCoYI62ehB9yk0ADCqOK7h7BY2dHDf3sadXk25f3ubGnieEqyz3Cb9ClRmhAP7V8u46KpXK6gJci5/efreADkLUXt5dxcKQ85rj60SavwQDFIq7SbTNP7Mp26f3IuvKHZnFokVzApi6JGJoAIMA==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775854529; c=relaxed/simple;\n\tbh=NCLwUcavida6lTRmcWsaKb5HSspL1nWNySBxMvO4hO8=;\n\th=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:\n\t MIME-Version:Content-Type;\n b=axDZ3ok7jmvbSO8WiiFFecMujCIaos94PQHn10ZAS1jNcaIe+ttHDe8/5uTtGdaOKewpJBqtSnBez4lF3Nuu/H1XzkOzqTNqKVEb6vfL04fMe0sZqj4NnfeZhbljOj5ng5bN3mUc0/Qx9CnH4lnWbaxww7CNADN2jrolKKRkPsA=" ], "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=uBb+aK4w; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=sparclinux+bounces-6691-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=uBb+aK4w; 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=1775854529;\n\tbh=NCLwUcavida6lTRmcWsaKb5HSspL1nWNySBxMvO4hO8=;\n\th=From:To:Cc:Subject:In-Reply-To:References:Date:From;\n\tb=uBb+aK4w3/2u4kyVJBiptzM0/JeHVU+h0LyuAGmXhRBB/wmY8nVPEGLrH6PIUauly\n\t xZ5jhTx/pd4jDAH6N0E8699fbCvDPdRPvQ/1U9PBOdvPEbxrui2vDJcfwacrKBJbAt\n\t K2KgH8S8N6W61I5bQqua5TC/HTbe1JJBDb2jmaIXqh11mio1s1ulWsCUgh1TEd2HU0\n\t +ZMxNL6Px/beH32xwdxJ9u73C9h58Vy+EiUKACVtBOcR0D3eWoYoTnffZnDWdkv8Q1\n\t Jq57olSI26FETBnKfPSYv2rHfBfCG49DcVZq8FGFKIXdb41avCYxrEXRj1YRJAzkeo\n\t CA0Wg7vMsMitA==", "From": "Thomas Gleixner <tglx@kernel.org>", "To": "LKML <linux-kernel@vger.kernel.org>", "Cc": "Arnd Bergmann <arnd@arndb.de>, x86@kernel.org, Lu Baolu\n <baolu.lu@linux.intel.com>, iommu@lists.linux.dev, Michael Grzeschik\n <m.grzeschik@pengutronix.de>, netdev@vger.kernel.org,\n linux-wireless@vger.kernel.org, Herbert Xu <herbert@gondor.apana.org.au>,\n linux-crypto@vger.kernel.org, Vlastimil Babka <vbabka@kernel.org>,\n linux-mm@kvack.org, David Woodhouse <dwmw2@infradead.org>, Bernie Thompson\n <bernie@plugable.com>, linux-fbdev@vger.kernel.org, Theodore Tso\n <tytso@mit.edu>, linux-ext4@vger.kernel.org, Andrew Morton\n <akpm@linux-foundation.org>, Uladzislau Rezki <urezki@gmail.com>, Marco\n Elver <elver@google.com>, Dmitry Vyukov <dvyukov@google.com>,\n kasan-dev@googlegroups.com, Andrey Ryabinin <ryabinin.a.a@gmail.com>,\n Thomas Sailer <t.sailer@alumni.ethz.ch>, linux-hams@vger.kernel.org,\n \"Jason A. Donenfeld\" <Jason@zx2c4.com>, Richard Henderson\n <richard.henderson@linaro.org>, linux-alpha@vger.kernel.org, Russell King\n <linux@armlinux.org.uk>, linux-arm-kernel@lists.infradead.org, Catalin\n Marinas <catalin.marinas@arm.com>, Huacai Chen <chenhuacai@kernel.org>,\n loongarch@lists.linux.dev, Geert Uytterhoeven <geert@linux-m68k.org>,\n linux-m68k@lists.linux-m68k.org, Dinh Nguyen <dinguyen@kernel.org>, Jonas\n Bonn <jonas@southpole.se>, linux-openrisc@vger.kernel.org, Helge Deller\n <deller@gmx.de>, linux-parisc@vger.kernel.org, Michael Ellerman\n <mpe@ellerman.id.au>, linuxppc-dev@lists.ozlabs.org, Paul Walmsley\n <pjw@kernel.org>, linux-riscv@lists.infradead.org, Heiko Carstens\n <hca@linux.ibm.com>, linux-s390@vger.kernel.org, \"David S. Miller\"\n <davem@davemloft.net>, sparclinux@vger.kernel.org", "Subject": "[patch V1.1 02/38] x86: Cleanup include recursion hell", "In-Reply-To": "<20260410120317.709923681@kernel.org>", "References": "<20260410120044.031381086@kernel.org>\n <20260410120317.709923681@kernel.org>", "Date": "Fri, 10 Apr 2026 22:55:25 +0200", "Message-ID": "<87ldeuzgaq.ffs@tglx>", "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", "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---\nV1.1: Fix PARAVIRT_XXL fallout....\n---\n arch/x86/include/asm/cache.h | 1 +\n arch/x86/include/asm/msr.h | 5 +++--\n arch/x86/include/asm/paravirt.h | 3 ++-\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 9 files changed, 12 insertions(+), 8 deletions(-)", "diff": "--- a/arch/x86/include/asm/cache.h\n+++ b/arch/x86/include/asm/cache.h\n@@ -2,6 +2,7 @@\n #ifndef _ASM_X86_CACHE_H\n #define _ASM_X86_CACHE_H\n \n+#include <vdso/page.h>\n #include <linux/linkage.h>\n \n /* L1 cache line size */\n--- 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/paravirt.h\n+++ b/arch/x86/include/asm/paravirt.h\n@@ -16,9 +16,10 @@\n \n #ifndef __ASSEMBLER__\n #include <linux/types.h>\n-#include <linux/cpumask.h>\n #include <asm/frame.h>\n \n+struct cpumask;\n+\n /* The paravirtualized I/O functions */\n static inline void slow_down_io(void)\n {\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": [ "V1.1", "02/38" ] }