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 06D8DCCFA0D for ; Wed, 5 Nov 2025 20:15:36 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4d1xQb093qz2yjp; Thu, 6 Nov 2025 07:15:35 +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=1762373734; cv=none; b=a8TQqCdb0RIpBptNqo5Sf9hjHW4czDoPAULHeCFHo8HbK1qSnl4G8dBUZ9AUM6MQj1xANRxdSo/74/WsOQmovrZsT84mku3JE6r4PCTAyUiaa8lx3bspqUoOYGN281RrN5BRnGDrMVrFoXJ4t6MU9uwhpjnnU9LQKNS4tbj+ZqoK5pd4RkO0yDuc30/qP7HCxr3K564ISAc+9F8D9OtDgor2DWq3OqlZXEwQ4oL76ke1wXzzzHIChy2bztkEmSJpWT9utQSf8Ub1whL0+tgn/8SZ/i5wP8QgBtwUtDvT63b5+9B1qr66rczSwgZpg5IGQc64ceghBCGSnvUOVLJI0g== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1762373734; c=relaxed/relaxed; bh=YLcI7uh56ZVRt3C9U1s60gRSr20JslBP/aA229quIic=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NnD+F5ZZzRBKpLPKmUvYYf/UT5wJtlVTHTWtozU3DmZ4pp6/R1zwBoCVqa2BudVXpkXVnIuS3KH3zz3sVqhCYgDg1HrWmaSrg8LyGLmaJMat/l0GS2w0PuZZJZd1iSMvZZFxp+M0Aoo25swBKmi9oaZOn4RKs6Ckz6E54HqSG8rJkEUsXbN7m3V4k1awtxdkBjCbXD6Mok7iK8lc5O5tsFK0b1Wp9nhULqTTPJG/O4qZRhS6ndk6XwFMpSev3ii3nAOkVYKZXnjVTbab6tALUbrred1iSebYpYfd6vlaMcSpE/tynOrw8rp7LyA/bTfsZ/KfqmuWLcaJMa6sDwUu2w== 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=tVjlLypv; dkim-atps=neutral; spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=nathan@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=tVjlLypv; 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=nathan@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)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4d1xQZ1GnQz2xQD for ; Thu, 6 Nov 2025 07:15:34 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 056A0601F1; Wed, 5 Nov 2025 20:15:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4A94C4CEF5; Wed, 5 Nov 2025 20:15:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762373731; bh=Lw++o2HELy2ZtWzBIbekYFJktkL5pR/Om2RKn74v1rQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tVjlLypvxp3tK6h3M4G7McwvdI6gA8sxm/UocCXG0mBUTsqUSzgrjT87E1jK3B7rE ibU2ywmazXPh8J10A3IxweVZ8xaZofARrlwX0OlWkDzUJKqErx5FjL0EPddsf91/NQ 3oPru8Psy5xRWnEgEShymCYgSetPXqw72puMPnE6ccAIz+Fu5j6x1iwibexdQ9zoiS fe18mkKCL625LUctrbKaESMKZ7GPUJftYZvZ2rxKR4a+sJN2uJfeLNcoyICvtUikQi PLh4WhrsOD8YLyih3t766j/ZSJe7NBsghwm5c25JoUzABBadcnwyLdEVVQJ7W553rD 0eOxjwkaepv7Q== Date: Wed, 5 Nov 2025 13:15:22 -0700 From: Nathan Chancellor To: Segher Boessenkool 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, Christian Brauner , Linus Torvalds Subject: Re: [PATCH] kbuild: Add '-fms-extensions' to areas with dedicated CFLAGS Message-ID: <20251105201522.GB3787308@ax162> References: <20251101-kbuild-ms-extensions-dedicated-cflags-v1-1-38004aba524b@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: On Wed, Nov 05, 2025 at 07:44:26AM -0600, Segher Boessenkool wrote: > On Sat, Nov 01, 2025 at 12:35:47PM -0400, Nathan Chancellor wrote: > > 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. > > Please fix such non-standard code then, instead? The only (documented) > thing -fms-extensions does for C code is give meaning to something that > otherwise is a syntax error (and it is for a good reason!) Right, the kernel would like to start taking advantage of one of those extensions. See these other threads for more information. https://lore.kernel.org/20251020142228.1819871-1-linux@rasmusvillemoes.dk/ https://lore.kernel.org/20251023082142.2104456-1-linux@rasmusvillemoes.dk/ Cheers, Nathan