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 91FF8CCFA0D for ; Wed, 5 Nov 2025 13:45:48 +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=v2rYgvZieTTaJf5j5KLaO2PaarklVK0OhDArVYYysPU=; b=QHzzXPRIncWNcMqjBKnJddE7s7 CRgNRN5V3JBvjjCABoGhgWiGwuPWHv4CUEaxCPy7h2WwU6tHABMQdgecxZCaoB7wtVepu63LV/MTK UinRtmbd4581RMSOjgADhs0PTurrzGkW7tWhKA/qoNZGRkq+WP6URcpXhEPrtDlbzrpwkdUJnQ9B4 6ax9AtZzkM1ZRB/fBmokoX+BL8y4tf8sWnoA3ByzBwf9zgpm8HMK3Qp7UVOde+P/lpCq/QLyMUMLC /YR+NV4VBPe1OUkIFz6yPdSQjuJpWYUDvLyLECcAfvZdLSoOSfb1owmq9/ZPrxCx4Qklrjdnn3kTW 25e/HWqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vGdpS-0000000Do9C-1Rgf; Wed, 05 Nov 2025 13:45:38 +0000 Received: from gate.crashing.org ([63.228.1.57]) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vGdpP-0000000Do8N-32Ml for linux-arm-kernel@lists.infradead.org; Wed, 05 Nov 2025 13:45:37 +0000 Received: from gate.crashing.org (localhost [127.0.0.1]) by gate.crashing.org (8.18.1/8.18.1/Debian-2) with ESMTP id 5A5DiSRa1593373; Wed, 5 Nov 2025 07:44:28 -0600 Received: (from segher@localhost) by gate.crashing.org (8.18.1/8.18.1/Submit) id 5A5DiQRd1593372; Wed, 5 Nov 2025 07:44:26 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 5 Nov 2025 07:44:26 -0600 From: Segher Boessenkool To: Nathan Chancellor 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 Subject: Re: [PATCH] kbuild: Add '-fms-extensions' to areas with dedicated CFLAGS Message-ID: References: <20251101-kbuild-ms-extensions-dedicated-cflags-v1-1-38004aba524b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251101-kbuild-ms-extensions-dedicated-cflags-v1-1-38004aba524b@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251105_054535_934040_713419F1 X-CRM114-Status: GOOD ( 10.38 ) 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 Hi! 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!) Segher