Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6586167rwl; Mon, 9 Jan 2023 10:10:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXuglLupjtb4sYV7GvddyAPWM9+LmKlPIGANAXFSO4A7zgz0Yg01tjRVCQIHzGLYmpxfTCT9 X-Received: by 2002:a05:6a20:1bc2:b0:ad:e765:9554 with SMTP id cv2-20020a056a201bc200b000ade7659554mr69724677pzb.55.1673287845451; Mon, 09 Jan 2023 10:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673287845; cv=none; d=google.com; s=arc-20160816; b=sqq7ST6eq0GIDnm/ioDFOvkzwnhiOYRq3Epakd99YRBUmE+vmtg8dTznj7gynE/9Zv 7ic5P1ZHI3PJWqBsmeIlrKizPG/WSMcles+SS4oRr/7w7CgfxFjes24ZJy2+k8Pjjxrr T1j6Zx1m8M17fc6BCsVyXrWUxGvo+lk2JdN+HBosycTz6nAEMXZubH40m+k390TnyLuz tKPVs4/SN9x5mn/tBxcRFArSxHAvcKhJ7WdnMDI0LX7qSJS7W0fpJqIXuSWUr4q8BGJQ hFNgDyp5VZaVknXJpJ5LRmV2YusZGCLT0DVjwoGIOz5AsME7o3MEQDvY7dzLzKEMU99+ 9JnA== 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=zXAsFIwcRB3CJubxva9dAERJ2V6JdLSWaTB4h5HV8W4=; b=I9XWAddxXrijTnyWjQW/KWnKIu0ikDSOhCeYuBhbDTHT6/DJFJzpbisruFKoaoErWJ Kkjgo4/7hZXovsPvQqjjRfbKsCTxQLGKBi2E4qaUQoP5IMwbyv2fdiVEtaU9NHxU82/g QLo4wzk9yR6x/xAdgvo3q6eV8kz1S00g5Q9O7A7xvNsLjp+30w7+4U7ZCDOm8uEKRY2S z2Rn7Si9hlWc9ztNX9MPvNRPPyCQNLqXr5beRdWUm3jg7Wv18mLbvDxr49SBWIi/PfiO 8F/j5VZq7Cw6x9ReozVBrEXuof8qZ7g7v2J/AN6SFdkOz7M6ZUA8A7tAoK9na7rd3uoc nElg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jv80ikvi; 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 g67-20020a636b46000000b0047856c2590esi9958585pgc.35.2023.01.09.10.10.38; Mon, 09 Jan 2023 10:10:45 -0800 (PST) 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=jv80ikvi; 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 S237418AbjAIRzp (ORCPT + 55 others); Mon, 9 Jan 2023 12:55:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237570AbjAIRzF (ORCPT ); Mon, 9 Jan 2023 12:55:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 176E37D1C2 for ; Mon, 9 Jan 2023 09:50:47 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id A423D612A0 for ; Mon, 9 Jan 2023 17:50:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FA00C433EF; Mon, 9 Jan 2023 17:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673286637; bh=I+3c0LOitmufPAdIZdZX0PW1cS/iMhf84exuuDa8ZnA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jv80ikviPzb9OqyuGTL1yzzoy3dH7kOufWJp0xmuhRz7AqLYNU8BSZsBbKNFosVEG LEifmZ8WPXvvU9BQa3hYRfmBR+xm5w5hWZCcNN402fv/VYl+E6nad9n/cfjeKvSC00 Pl3JgNZ2gwAo/Q59MZZsfjkDKL+0BEaqiPfw9FuJOjfH2yzhnponSXfcAVnry1ZGPs EeceCZOPwWfDGZn8s5RjAdQ6ftdWsQD8Taxt115HRnmG27IFZcym2KHk6S0h5YAboc ZAb88P//C8NUyt0KImnWbKeFUzHwvdxqKIPs4fD69Bx/qe8XekGEH26lDXCXcmuOyA E9+EKJNSnztdQ== Date: Mon, 9 Jan 2023 10:50:35 -0700 From: Nathan Chancellor To: James Clark Cc: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, Catalin Marinas , Will Deacon , Nick Desaulniers , Tom Rix , "Steven Rostedt (Google)" , Florent Revest , "Masami Hiramatsu (Google)" , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] arm64: Fix build with CC=clang, CONFIG_FTRACE=y and CONFIG_STACK_TRACER=y Message-ID: References: <20230109122744.1904852-1-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230109122744.1904852-1-james.clark@arm.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 Mon, Jan 09, 2023 at 12:27:43PM +0000, James Clark wrote: > commit 45bd8951806e ("arm64: Improve HAVE_DYNAMIC_FTRACE_WITH_REGS > selection for clang") fixed the build with the above combination by > splitting HAVE_DYNAMIC_FTRACE_WITH_REGS into separate checks for > Clang and GCC. > > commit 26299b3f6ba2 ("ftrace: arm64: move from REGS to ARGS") added the > GCC only check "-fpatchable-function-entry=2" back in unconditionally > which breaks the build. > > Remove the unconditional check, because the conditional ones were also > updated to _ARGS in the above commit, so they work correctly on their > own. > > Fixes: 26299b3f6ba2 ("ftrace: arm64: move from REGS to ARGS") > Signed-off-by: James Clark Just for posterity, since I see it was already applied: Reviewed-by: Nathan Chancellor > --- > arch/arm64/Kconfig | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index cf6d1cd8b6dc..c5ccca26a408 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -184,8 +184,6 @@ config ARM64 > select HAVE_DEBUG_KMEMLEAK > select HAVE_DMA_CONTIGUOUS > select HAVE_DYNAMIC_FTRACE > - select HAVE_DYNAMIC_FTRACE_WITH_ARGS \ > - if $(cc-option,-fpatchable-function-entry=2) > select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY \ > if DYNAMIC_FTRACE_WITH_ARGS > select HAVE_EFFICIENT_UNALIGNED_ACCESS > > base-commit: 5db568e748f6fb7d0d2e1bff4c2698ad4f50b982 > -- > 2.25.1 >