Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2222218/?format=api
{ "id": 2222218, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222218/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/87ldeuzgaq.ffs@tglx/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/1.1/projects/8/?format=api", "name": "Linux ext4 filesystem development", "link_name": "linux-ext4", "list_id": "linux-ext4.vger.kernel.org", "list_email": "linux-ext4@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/linux-ext4/patch/87ldeuzgaq.ffs@tglx/mbox/", "series": [ { "id": 499509, "url": "http://patchwork.ozlabs.org/api/1.1/series/499509/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=499509", "date": "2026-04-10T20:55:25", "name": null, "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499509/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2222218/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2222218/checks/", "tags": {}, "headers": { "Return-Path": "\n <SRS0=wMzF=CJ=vger.kernel.org=linux-ext4+bounces-15794-patchwork-incoming=ozlabs.org@ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-ext4@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=wmzf=cj=vger.kernel.org=linux-ext4+bounces-15794-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.234.253.10 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=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15794-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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fspxz0TPKz1yGb\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 06:56:39 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fspxz020Yz4wCm\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 06:56:39 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4fspxy7488z4wTb; Sat, 11 Apr 2026 06:56:38 +1000 (AEST)", "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4fspxv4JgZz4wCm\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 11 Apr 2026 06:56:35 +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 5218130238C0\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 D8BA03A6F17;\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=1775854598; cv=pass;\n\tb=KoMV0voJZvk4w7QhJcOhk8ist8wZT5doXOCy4WVwyDQSHrvExmthjdEybnzPnqiRaJcaVLWWiCQ3wPux41QyOyCROmj1+bkFwA7FPwufwL/MeMaj5hxQ/uCI1v/5NydshhklP2ZI7nkTnqibie3C9CLhH8dRceWor4ht+woxonwkkZKb38LWAy5XK8W5/QDdNi4uqjvxXX0825cF8yfHRv4AhgqfNFbIItRhVKq1lD+j2T6Xw7YDcMRF30qdcrhoq2G2zNFaqwBKUtAm3ruWI+jz4q0JUgkXkat+Qsf/hxupdY9yb2P7BsgZ1Nt/aPpfUXA8kbFjdsPzsCFIqcKXpg==", "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=1775854598; 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=QH3286iTqUDoHTornZLlgzOnFHaHCivfveNYyA6bXZwT1/DXgqz9Pfi6u9CUW+q/z7BAiXf/MTaBKeEZbvUIyLQyFP2EeRjvMJajmYIGo4Xjjc43PcjoAWhIACBFdxAiTp7mMajnV10GZzgRHEZHVsS93NzMek9u1w9yh3rj6y9faYvTt9TCgDiVV8TMp4Ue7fOcqfCY4kBBGbut6TdYEI4e/tmgVqYiBQbP/BGGNUVpILbqxTqCILoSPjp9HMUoqdpkhHgnRHCF75vXBctxStPehzV9H86tSp0ulopCy5KJQOD5RXtJWAXGG0+40WctdIjuRsdcWN8iSDbErF6ukg==", "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=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15794-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": "linux-ext4@vger.kernel.org", "List-Id": "<linux-ext4.vger.kernel.org>", "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-ext4+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" ] }