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 177AAFEFB6E for ; Fri, 27 Feb 2026 16:36:56 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fMv9g0Jqbz30N8; Sat, 28 Feb 2026 03:36:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.105.4.254 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1772210214; cv=none; b=Rua/w3dTXuIdjF5PydNEKjuqCuXt5YYQr48GdNbllz8xHO+VrjGJXcIowbsLbOiFTGfoUzXNdw8RjitLE6F4yIfZiILV/qIdHR+5IiKCTE5oql5lzh0QRXdJUXcIJXrr7wjmSkJJugGF589Z1Bqe+FvtvhLlmLe99NkyNsl+S97gkbO2vQ+gbZUdxEMu0FVOie8JFc9s9i5nT/cbVtx6jCeozbSPjmoLIKRg5KZ3c7nodOHTjfBHBneFwQ4UJ6KQOPXw1jBNhJ+uw2cDZ+mjPNfoXQfpoy34m0pVRLSwIJXeRi3uQXVYY6oFsJgG4WuFYbeP1ohgcAFD7iQFK43M2A== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1772210214; c=relaxed/relaxed; bh=/RMJ9vglHRabpfidLDVP2vBp9Odg4KBJTy36nr1qkQY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gJlMjp2jDZMVt0osdGbWm7A0GhOXLgxcR6j73+nDhLgKv8QBvLkVnUoI3dqqtRrijN4MPYe3g7DSZPM9xv2yZWYE4OaP6NIHqs4BX8FYm0mbDd1+waxlXZiQiTZH81SV8PkQQ3Pl2ddOy/Vw6FsZ/YeSs0/+bIX16qsDiO4uQOpTG6PnB8ArVDwZKSGgiX1OY+i6YqO3CHiWhlWl1Dd+58g+Ko+EYZEb7o2yvGGV9Whc7RSpTUFi3AxlGuD1g6SJYIzX8J2NtLnrSUoyQuCQ9CMX3We1zYaD6nnh9GqM3a6z/6Y4kWejJX8ByU0CJ1G4+yLDD2005aqeugT8J8sv0A== 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=MB9xUxSA; dkim-atps=neutral; spf=pass (client-ip=172.105.4.254; helo=tor.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=MB9xUxSA; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=nsc@kernel.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) (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 4fMv9d2J2gz2yFQ for ; Sat, 28 Feb 2026 03:36:53 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id E197160008; Fri, 27 Feb 2026 16:36:50 +0000 (UTC) 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> 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=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