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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0F3AFCCFA0D for ; Wed, 5 Nov 2025 19:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nJism+WZg14S3mIzqT7BU2MJ+ZsJmgGFJ/ELDKYvUzg=; b=p0mYmcRMEH5sQhNY74TTTDh7Mv rnh0M++zzN6VDt/Q0sQYjDhODk7yWo2uaeOunCVh2pXNRLFm7FQOpP/P6MmewiF1E2d1xOGhNEuRO QZPy37Yenupgq9RI6FIyXAoR7N7/1l0kWrNYnCZ32GjDWYqGeYiKnC29SLdO0ZHCcRrzmb+IYeFsa qUKqUwudLTnTA/iCjBwAWphfbT7KwT191usB7pf06ozyNJklLkdHInRaBk0Y2PzoFFlr3pmxI6g+L cdebNL6qytATfFZbbzqBw02ySsV33iDPCkH/3SSGddv+ZOMZnS+OPsTRZQwElq6FMK7B7mPNofdJL 8agQVkMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vGjM8-0000000EJS9-1nIa; Wed, 05 Nov 2025 19:39:44 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vGjM6-0000000EJRX-0iRb for linux-arm-kernel@lists.infradead.org; Wed, 05 Nov 2025 19:39:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 73D01402C4; Wed, 5 Nov 2025 19:39:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F408C4CEF5; Wed, 5 Nov 2025 19:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762371580; bh=msHJOFVV1OB3Fpzsq8IVbuj9UIdZOpLQ1nNFvVBvM9I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DCo8aa7tr6qCXCAwbmbfBQHe6+J1XQ92v/dEdS0D1RmsTXvTBe2y4QWq3i4ntmkp4 hCwptFye8pcPGdiXeKcVMxkeZBrhHluCYl/vU6sn2vu9+WiYI0AQa71hlYpPJp+uwk nLmGphbfV4NSrG1Ku28gkrTDNfaJG1ZzoKebd314vXufpylTRn3P6E0nSQVUMFx+/G nEygicNERiduVcddaetu2bZdLTIFFi4RDC/xSKeOjPk8imNyFUelcn9MA6scQFhpbq naUiHjcZXZDebrmf1ZMmCKbSsI1gDu42pHY/3/s/yeqOxXjPKqA78jz/c32pbgcTEw rVKRvBK26YgJQ== Date: Wed, 5 Nov 2025 12:39:31 -0700 From: Nathan Chancellor To: Christian Brauner Cc: Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , "James E.J. Bottomley" , Helge Deller , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Ard Biesheuvel , Nick Desaulniers , Bill Wendling , Justin Stitt , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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] kbuild: Add '-fms-extensions' to areas with dedicated CFLAGS Message-ID: <20251105193931.GA2480016@ax162> References: <20251101-kbuild-ms-extensions-dedicated-cflags-v1-1-38004aba524b@kernel.org> <20251105-amnesie-eisig-277559b69bae@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251105-amnesie-eisig-277559b69bae@brauner> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251105_113942_253286_0D8DD8CD X-CRM114-Status: GOOD ( 26.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Nov 05, 2025 at 01:56:02PM +0100, Christian Brauner wrote: > On Sat, Nov 01, 2025 at 12:35:47PM -0400, Nathan Chancellor wrote: > > This is a follow up to commit c4781dc3d1cf ("Kbuild: enable > > -fms-extensions") but in a separate change due to being substantially > > different from the initial submission. > > > > There are many places within the kernel that use their own CFLAGS > > instead of the main KBUILD_CFLAGS, meaning code written with the main > > kernel's use of '-fms-extensions' in mind that may be tangentially > > included in these areas will result in "error: declaration does not > > declare anything" messages from the compiler. > > > > Add '-fms-extensions' to all these areas to ensure consistency, along > > with -Wno-microsoft-anon-tag to silence clang's warning about use of the > > extension that the kernel cares about using. parisc does not build with > > clang so it does not need this warning flag. LoongArch does not need it > > either because -W flags from KBUILD_FLAGS are pulled into cflags-vdso. > > > > Reported-by: Christian Brauner > > Closes: https://lore.kernel.org/20251030-meerjungfrau-getrocknet-7b46eacc215d@brauner/ > > Signed-off-by: Nathan Chancellor > > --- > > I am taking the original '-fms-extensions' change [1] via a shared > > branch in kbuild [2] so I would appreciate acks. I plan to finalize that > > branch so that other maintainers can safely pull it on Thursday. > > > > [1]: https://git.kernel.org/kbuild/c/c4781dc3d1cf0e017e1f290607ddc56cfe187afc > > [2]: https://git.kernel.org/kbuild/l/kbuild-ms-extensions > > --- > > I'll give my ack: > > Reviewed-by: Christian Brauner > > but don't invalidate the branch just to add my RvB if you've already had > it stable. I was planning to make it stable tomorrow to give folks time to chime in at the beginning of the week. I have your tag and Ard's to add. After that, we will just have to rely on the link to this submission for follow ups. Cheers, Nathan