From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4788105A592 for ; Thu, 12 Mar 2026 12:10:41 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fWmfR6PPrz3cFN; Thu, 12 Mar 2026 23:10:39 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c0a:e001:78e:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1773317439; cv=none; b=eipg/0ovNKvahS1aY9TgoslaW2j8MpkZ7RuNJzx6n+Zh/DiPeYy+bGonT+EONmwKqWY2OcxlDsLqc/hWeYvhwtENQcH1bWBsCUy1z9sB0p9DaVa0ptlA1WOSwOr2eWyUmBvspMHaAj35y42OIyvznN7UgQJbV5nJICrmoGUbA0EF/gRwLaW9qsF5jpAh2w+//P6UaOellLzfDtEzGxdti7ZLX2k2SUv9F+oH8oPAT0LnWVwWd3hwZ7JogO7Mpm1ZBGkx2C2+Eb1YBs+HllEWhhXyBZljn2yfoGezCNphY6beAwrNSOaZPZCVouAcx00PPlxx3e7x8tNuHmJ2SGB8nA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1773317439; c=relaxed/relaxed; bh=6h0QIfIG1FqCPbr/IC9lGC2Dm3QyO7Jeit7XU4Dft9I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Jj0YbVUbL7j+6DCJUdCLGskCxfHb4B4W7cAE/WI0ZIZ3n899XDP1xR3+SuLoRAr3DHjLSzwTojVNZl3R1o0PhPKkWlmh1Wq/lsV6kZEAfDfhlXe4dGAkDhHi1+Kbg1FcofZXGXdA+ppQ0BLzalGCJpQVRF26ztz4ccquIVsO/GfTRQ9rN7r27sVlgTYCGzXl2FvEzBY3+gwijbNXNSq5OqrEKjP5sAW7OTZxdtL3Oa8NgsZ/MqN/+i0737fSi+r97POB3YNjmvKNfdwin20usQFm9yOsG/rE0zLw57Yqdc67nuE0cGc8beSdmocO97fHH2QAXZlVAW9SbtayM19CUA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=kzp5oTip; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=nsc@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=kzp5oTip; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=nsc@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fWmfQ4bbJz3cCJ for ; Thu, 12 Mar 2026 23:10:38 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 5636A40278; Thu, 12 Mar 2026 12:10:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8DBDC4CEF7; Thu, 12 Mar 2026 12:10:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773317436; bh=nQuXQCfJ/SfXG9YfnkL7myftheQ9u5GoCmA3GEgvOX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kzp5oTipiNOs9fmIBpi1nmmSuQ4uLVNq08LPCSch8yiIeOkyJ8Az9MBCTybE7cm5d AMxfwpohLYKZvdRcwY6FVWNb1PtjdZE3EgpeQC628X0efwh2wRrw0LhWn9yaxAQfpf w6ZUYG6LkLltn75gOmO38N55qeVwus4Wr+Sb10hyo0888DrxKRH5rYKA32g+xfcRRS vWwOBuST+wlsK+dHrf7tH4G3ruupinYIHv4ZCjmtIer0Zb+wbl+bwIETcNIuNLPGvg W1154YFBZI0Xw+DtOH34QkYfcH3Ndv6eraBdM09caT66SnioiGB/fgmwobzxV3sXLI 1S2FtYnyjdp3A== From: Nicolas Schier To: Nathan Chancellor Cc: Nicolas Schier , Linus Torvalds , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , "James E.J. Bottomley" , Helge Deller , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Ard Biesheuvel , Ilias Apalodimas , Nick Desaulniers , Bill Wendling , Justin Stitt , Kees Cook , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-efi@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH 0/2] kbuild: Switch from '-fms-extensions' to '-fms-anonymous-structs' when available Date: Thu, 12 Mar 2026 13:08:48 +0100 Message-ID: <177331711843.39835.18126183139184363231.b4-ty@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260223-fms-anonymous-structs-v1-0-8ee406d3c36c@kernel.org> References: <20260223-fms-anonymous-structs-v1-0-8ee406d3c36c@kernel.org> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Mon, 23 Feb 2026 12:10:27 -0700, Nathan Chancellor wrote: > The kernel enabled '-fms-extensions' in commit c4781dc3d1cf ("Kbuild: > enable -fms-extensions") in 6.19 to gain access to a Microsoft > (originally Plan 9) extension around including a tagged structure/union > anonymously in an other structure/union. Since then, Clang 23.0.0 > (current main) has added a flag to enable only that extension, rather > than all Microsoft extensions, '-fms-anonymous-structs' [1]. Using this > narrower compiler option would have avoided the build error fixed by > commit a6773e6932cb ("jfs: Rename _inline to avoid conflict with clang's > '-fms-extensions'"). While these errors are not expected to be common, > using the narrower option when available has no drawbacks because the > kernel only cares about this extension in '-fms-extensions', no others. > While this could result in build errors for folks using > '-fms-anonymous-structs' if a developer uses another extension in > '-fms-extensions' (either intentionally or unintentionally), flagging > these uses for further scrutiny seems worthwhile. > > [...] Applied to kbuild/kbuild-next.git (kbuild-next), thanks! [1/2] kbuild: Consolidate C dialect options https://git.kernel.org/kbuild/c/ec4c2827 [2/2] kbuild: Use '-fms-anonymous-structs' if it is available https://git.kernel.org/kbuild/c/0d3fccf6 Please look out for regression or issue reports or other follow up comments, as they may result in the patch/series getting dropped, reverted or modified (e.g. trailers). Acks from arch maintainers are still welcome! Best regards, -- Nicolas