Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1190798rwi; Fri, 14 Oct 2022 14:28:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VGOZjnOMOFVxRB26NSyANpuWJS9D5Rbui8fxpiIo1AacTcGIut6HPhfTi7S/lbJbvit5i X-Received: by 2002:a17:907:805:b0:782:1a0d:337f with SMTP id wv5-20020a170907080500b007821a0d337fmr4964589ejb.475.1665782908461; Fri, 14 Oct 2022 14:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665782908; cv=none; d=google.com; s=arc-20160816; b=MvDZFbhQ5ovx7IvO7Jj1WbL/VxBdiwSXAj/CFLmCJ4eRrR7qH0P+gUTe0ggjaPUI7O 3pYvhj81XjkrrflSObj1C302CfIynwh/ScKn+WSv8WO2UzFBCy0aCxLespZCMWlCz8HW e4H34/gMg50jC6Kmb/0Fvjte5eqPutjELpi7KlKEV3eNXaZSTT5r9SFj2XHRhiC10w6K VkubLN7lnMKQ7LSjTO+pFi/+i1mPpeEmMJWxCIvMimY7uNhMp0zgzuniKk0/NZ2dooVL Gzt89q8dfrrxw+EUU1jL4tQakRMFoNOk8UyXNyobcVD1jNoit+B/BGjLpoxTNbdPaarE CFEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Kylm9M6Dxs3K2XfC/91hJr0pJXcS6KDJvSQ/Vk+OzmU=; b=I5+lc3XUpkOPJ38bks3JkxrsqLLDugKIkhteN6wvsxjh/Vnpzuzl93qFQAXVcGQ6jX m26JSHNcCYx2gvduywpxEX1S4LtfgttzJ+WSPkVvQOhV9PN+0wxbPp+y8QBdsrexkYBZ W8eAVv6ZNcrneUGOpF1pvIHe2qzLXU/7vNwNYwGJ468AhNWYQW2Ret05cjIjN0b0AVUq XL8Op3AjfblT6OkQLTFdLQvn8VsNuk2x36OuZXORVARcFT7FWGIqTWGaT9eTISQkSwEu 411Wo49cJqX8wbTcMNZnIZbF2tZ5XxzrbKvfUlUYAFhFhpKkdYaocvvi1zdNhfrqEkpD MuZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WSklgKho; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne6-20020a1709077b8600b007832270e889si2922295ejc.90.2022.10.14.14.28.02; Fri, 14 Oct 2022 14:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WSklgKho; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbiJNVUP (ORCPT + 99 others); Fri, 14 Oct 2022 17:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiJNVUN (ORCPT ); Fri, 14 Oct 2022 17:20:13 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90D3B34999 for ; Fri, 14 Oct 2022 14:20:08 -0700 (PDT) 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 D7464CE2792 for ; 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221014201354.3190007-4-ndesaulniers@google.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 >