From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03994346AF4; Fri, 27 Feb 2026 16:36:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772210211; cv=none; b=Iy7/DMLNw2ciSRg/eq645O57hLmg6ChaHOBIx0KC8sxb664Yiz11aNeGFSfGNlCiQl5c/C0TsrYhXefPg2QUHMOqqSwo8iDYgxQRGhc565LGj+bVNvpsVpxarGPr3AbkJ9UK6YIvvRmXE1bS2WMIBYjxjHuyKJQPe+bclk4SW5A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772210211; c=relaxed/simple; bh=Z3uhduLHgelJSPSi026On/FywI8UKkvvjlJZUY1E4uI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X4D7hI/LCGcYGwOda4go6qrFfHAv1hzevN6LyErDCSbRaVPLGnU4/g38SKTXmVX4F3HE2svlFGP65SwhInK28GiwnmlY2jJQ1cTyDLGTo8WG5zKya03cetl3WyNNRZrsD6KJd1rDt8HzLdgFxU5JxX65QpxFF6qvrjvTRIM25lU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MB9xUxSA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MB9xUxSA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1501EC116C6; Fri, 27 Feb 2026 16:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772210210; bh=Z3uhduLHgelJSPSi026On/FywI8UKkvvjlJZUY1E4uI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MB9xUxSAbn+Di/nKHpsy4Owu9dULnOKmLKkKAH28ikPcwz8E+RbfqqGz2GrfUKoS2 rvjh4SLv6O9JiT+L+6SpQ0H/DrDTd5iZ4+QO2UVbr+MNaN2vtvrRDHMh8InzWzLS16 cncFCKpao/cWYr+w7ULn5xRgtHEAxOxUtF8TV9x/Gfm0Xhf56APc04TeRI/vI1HLWn rCK2y6qdS+KgajafeMKD0K51X5N68v1p6QI6T4oKzSBTbcUtFAPrySuzhetHWqfeao I9O/HuD47cl1xQtwtjRali7R0u0JCyq+rfuleR6cQliX8wPX4/lv7UgeBNEjV4a1Vi RyCLvFYLUeHLQ== Date: Fri, 27 Feb 2026 17:36:33 +0100 From: Nicolas Schier To: Nathan Chancellor Cc: 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 1/2] kbuild: Consolidate C dialect options Message-ID: References: <20260223-fms-anonymous-structs-v1-0-8ee406d3c36c@kernel.org> <20260223-fms-anonymous-structs-v1-1-8ee406d3c36c@kernel.org> Precedence: bulk X-Mailing-List: linux-parisc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260223-fms-anonymous-structs-v1-1-8ee406d3c36c@kernel.org> On Mon, Feb 23, 2026 at 12:10:28PM -0700, Nathan Chancellor wrote: > Introduce CC_FLAGS_DIALECT to make it easier to update the various > places in the tree that rely on the GNU C standard and Microsoft > extensions flags atomically. All remaining uses of '-std=gnu11' and > '-fms-extensions' are in the tools directory (which has its own build > system) and other standalone Makefiles. This will allow the kernel to > use a narrower option to enable the Microsoft anonymous tagged structure > extension in a simpler manner. Place the CC_FLAGS_DIALECT block after > the configuration include (so that a future change can move the > selection of the flag to Kconfig) but before the > arch/$(SRCARCH)/Makefile include (so that CC_FLAGS_DIALECT is available > for use in those Makefiles). > > Signed-off-by: Nathan Chancellor > --- > Makefile | 16 ++++++++++++---- > arch/arm64/kernel/vdso32/Makefile | 3 +-- > arch/loongarch/vdso/Makefile | 2 +- > arch/parisc/boot/compressed/Makefile | 2 +- > arch/powerpc/boot/Makefile | 3 +-- > arch/s390/Makefile | 3 +-- > arch/s390/purgatory/Makefile | 3 +-- > arch/x86/Makefile | 6 +----- > arch/x86/boot/compressed/Makefile | 6 +----- > drivers/firmware/efi/libstub/Makefile | 3 +-- > scripts/Makefile.warn | 5 ----- > 11 files changed, 21 insertions(+), 31 deletions(-) > Reviewed-by: Nicolas Schier