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 X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CECCEC433C1 for ; Sun, 28 Mar 2021 11:13:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A07AE61976 for ; Sun, 28 Mar 2021 11:13:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231224AbhC1LMt (ORCPT ); Sun, 28 Mar 2021 07:12:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:37428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbhC1LMT (ORCPT ); Sun, 28 Mar 2021 07:12:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CDE126192F; Sun, 28 Mar 2021 11:12:17 +0000 (UTC) Date: Sun, 28 Mar 2021 12:12:15 +0100 From: Catalin Marinas To: Masahiro Yamada Cc: linux-arm-kernel , Linux Kernel Mailing List , Nathan Chancellor , Will Deacon Subject: Re: [PATCH] arm64: move --fix-cortex-a53-843419 linker test to Kconfig Message-ID: <20210328111213.GA17535@arm.com> References: <20210324071128.1723273-1-masahiroy@kernel.org> <20210326143630.GD5126@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 28, 2021 at 03:59:29PM +0900, Masahiro Yamada wrote: > On Fri, Mar 26, 2021 at 11:36 PM Catalin Marinas > wrote: > > On Wed, Mar 24, 2021 at 04:11:28PM +0900, Masahiro Yamada wrote: > > > $(call ld-option, --fix-cortex-a53-843419) in arch/arm64/Makefile is > > > evaluated every time even for Make targets that do not need the linker, > > > such as "make ARCH=arm64 install". > > > > > > Recently, the Kbuild tree queued up a patch to avoid needless > > > compiler/linker flag evaluation. I beleive it is a good improvement > > > itself, but causing a false-positive warning for arm64 installation > > > in linux-next. (Thanks to Nathan for the report) > > > > > > Kconfig can test the linker capability just once, and store it in the > > > .config file. The build and installation steps that follow do not need > > > to test the liniker over again. > > > > > > Reported-by: Nathan Chancellor > > > Signed-off-by: Masahiro Yamada > > > --- > > > > > > I was not sure what the preferred CONFIG option name is. > > > Please suggest a one if you have a better idea. > > > > > > > > > arch/arm64/Kconfig | 3 +++ > > > arch/arm64/Makefile | 2 +- > > > 2 files changed, 4 insertions(+), 1 deletion(-) > > > > Would you like this patch to go in via the arm64 tree or you will queue > > it via the kbuild tree? > > I applied this to linux-kbuild with Will's Ack. Great, I'll cross it off my list. Thanks. -- Catalin