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 0E0084680 for ; Fri, 14 Oct 2022 21:20:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B918C433D7; Fri, 14 Oct 2022 21:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665782404; bh=37/4SOkpc1PTjHtkVxS8nJDWUdCatmn59b4YvJcSNds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WSklgKhoKuVbkvdEidXiptSIvdxW/0+UzkbKpXgeAbMj+ZgLo3TPJUz5COpf2zeHr OnE9IDEipT855r8+9pj3cEwmMuyLo6cK3cX7wdX97BfSIiyrR8kv59H1/5elpaEgQ+ 35WVgpTdhXgHU2PYMR5zOLWY5o4jloFTguwfp5+ygsbu4+RioxYRQhnpqauQ/2D0a+ fnhTXCLskyyDzSt5S8wsqM9dgdceH1ijv2r+Z9+X35F5/rYEJzcH1akqicWi8Lb6FW mRML/mskCh5LUBY9Gv8WHVF97o5YXTAvL1/HTYF2ybQCmkfEHgEBOmZD/Ocwb2QiA0 G8Bs5c4X/fKKQ== Date: Fri, 14 Oct 2022 14:20:02 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Russell King , Arnd Bergmann , Ard Biesheuvel , Masahiro Yamada , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v4 3/4] ARM: only use -mtp=cp15 for the compiler Message-ID: References: <20221014201354.3190007-1-ndesaulniers@google.com> <20221014201354.3190007-4-ndesaulniers@google.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221014201354.3190007-4-ndesaulniers@google.com> On Fri, Oct 14, 2022 at 01:13:53PM -0700, Nick Desaulniers wrote: > Avoids an error from the assembler for CONFIG_THUMB2 kernels: > > clang-15: error: hardware TLS register is not supported for the thumbv4t > sub-architecture > > This flag only makes sense to pass to the compiler, not the assembler. > > Perhaps CFLAGS_ABI can be renamed to CPPFLAGS_ABI to reflect that they > will be passed to both the compiler and assembler for sources that > require pre-processing. > > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor > --- > arch/arm/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 8dd943b50b7d..ee888070b2ff 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -111,7 +111,7 @@ CFLAGS_ABI += -meabi gnu > endif > > ifeq ($(CONFIG_CURRENT_POINTER_IN_TPIDRURO),y) > -CFLAGS_ABI += -mtp=cp15 > +KBUILD_CFLAGS += -mtp=cp15 > endif > > # Accept old syntax despite ".syntax unified" > -- > 2.38.0.413.g74048e4d9e-goog > 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 AAE23C4332F for ; Fri, 14 Oct 2022 21:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+aG8Eevw/XTHRkxDl4Ix8GkuuUU1lsXd9ZAx2b2tRZk=; b=HSQ/yXLrP3t9Fe SA+/AqK4VMbXP3+6sQAtMdtWAxvAhdIPy+IKGJu+vFhFZMxONeL0lbWxV+DSg1Bshb66xmUrp1tFx rd4GbiBEFCLORRYxB01SR66VV0qBxGIx65F9qq93UzxpZUmcEAxLYqSeyqcnDyk0BoVvz6G4CzMbt IVdhOgkIvqmmERC6XxG0kWNCV8PqUaw3MyJHBaUxuuXHqc/RO7Ni7tLBK0zoaTd7ZNCAMtTRQwsVi d+zfLOa0G3Ztt6wMDpryylAZ+FrgboqNGqmmSjvpx4ph2jYirK0THxvUk4KoyhESiZXIhQ6rq+WOx 19jDho2qNsz+nvhIt+lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojS6J-00Fz01-7s; Fri, 14 Oct 2022 21:20:15 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojS6G-00FyyT-2S for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 21:20:13 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 858FFCE2790; Fri, 14 Oct 2022 21:20:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B918C433D7; Fri, 14 Oct 2022 21:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665782404; bh=37/4SOkpc1PTjHtkVxS8nJDWUdCatmn59b4YvJcSNds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WSklgKhoKuVbkvdEidXiptSIvdxW/0+UzkbKpXgeAbMj+ZgLo3TPJUz5COpf2zeHr OnE9IDEipT855r8+9pj3cEwmMuyLo6cK3cX7wdX97BfSIiyrR8kv59H1/5elpaEgQ+ 35WVgpTdhXgHU2PYMR5zOLWY5o4jloFTguwfp5+ygsbu4+RioxYRQhnpqauQ/2D0a+ fnhTXCLskyyDzSt5S8wsqM9dgdceH1ijv2r+Z9+X35F5/rYEJzcH1akqicWi8Lb6FW mRML/mskCh5LUBY9Gv8WHVF97o5YXTAvL1/HTYF2ybQCmkfEHgEBOmZD/Ocwb2QiA0 G8Bs5c4X/fKKQ== Date: Fri, 14 Oct 2022 14:20:02 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Russell King , Arnd Bergmann , Ard Biesheuvel , Masahiro Yamada , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v4 3/4] ARM: only use -mtp=cp15 for the compiler Message-ID: References: <20221014201354.3190007-1-ndesaulniers@google.com> <20221014201354.3190007-4-ndesaulniers@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221014201354.3190007-4-ndesaulniers@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_142012_323040_18D1C327 X-CRM114-Status: GOOD ( 20.27 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Oct 14, 2022 at 01:13:53PM -0700, Nick Desaulniers wrote: > Avoids an error from the assembler for CONFIG_THUMB2 kernels: > > clang-15: error: hardware TLS register is not supported for the thumbv4t > sub-architecture > > This flag only makes sense to pass to the compiler, not the assembler. > > Perhaps CFLAGS_ABI can be renamed to CPPFLAGS_ABI to reflect that they > will be passed to both the compiler and assembler for sources that > require pre-processing. > > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor > --- > arch/arm/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 8dd943b50b7d..ee888070b2ff 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -111,7 +111,7 @@ CFLAGS_ABI += -meabi gnu > endif > > ifeq ($(CONFIG_CURRENT_POINTER_IN_TPIDRURO),y) > -CFLAGS_ABI += -mtp=cp15 > +KBUILD_CFLAGS += -mtp=cp15 > endif > > # Accept old syntax despite ".syntax unified" > -- > 2.38.0.413.g74048e4d9e-goog > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel