Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6135803rwl; Mon, 9 Jan 2023 04:47:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXvk6Vvl6Le54HkdrnfdVPBzonT6jshYXoDgWHs007/nrXWV4t6lbMLBA+3dG+Eiwy2//fdx X-Received: by 2002:a05:6a20:93a6:b0:ad:b14c:9e85 with SMTP id x38-20020a056a2093a600b000adb14c9e85mr90005320pzh.46.1673268424653; Mon, 09 Jan 2023 04:47:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673268424; cv=none; d=google.com; s=arc-20160816; b=jdQl7lEiJWjWNB8T7wn6m8ccghCaem+qlr3LXyK5AAxNszSW+s4mBSHHbtk+LHIRFC 28xY5P2n4E+mA0iH5KSqQFoENkySO2kKwatHvSI7nsfP2sVrI6YXD1B3Ho/eSLE8JDB1 GvNEIcv1jSFQ3ihOtCUy2IEZ7c9roBD1oury+QTb4bWKVn2JOYGSDAfAcx7/MmGZOyuo 0AocDdrgMjv/CCv5JyEP/wODnCzGSpFQxejuZjLYJ76jZpM8NWK8KigLaj07OpQkAIOc 17fIdPgd5iTHlxCJq8GVh+ugYoUqEivDw8YSufB7iuss+HrkXcqvT3fwA/L8Ry6wrzLv I0sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LQVHviMHSk3BTvdtvGhDm7FZHJ90xD5IKiIJgfZ8NKs=; b=jbghEuUOI8/1KhhKb5gRcLm0phamdZg5IQz9lpkmDwEX/vPBWD2jJ3wdakwt4iP0Ea Jrl09UAUZth6Na3/i4zegnwPX2ym9MIR8mbi6rMC0v7d9Ik/rNF9bramS43VigP0dvi9 bJcCo7N1lX7RJveqCroqdLF503UYAC3W4phidvEnfxuy4nvMUANq6jo1EzXhwSFC0eoT jrHpgCCizFg537Bmw5y43QkBrbCgN8TgMhJrg9AgoEppi2gdLCc2BLCrBOWyZwcNI+Eb 7KO1ddV0XZ6YzOvpkmrmAdjZKRTVXrLvKI62/Wyv3ZPP44sA/LptrPu7dIOvAFNd3zfO duUQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 28-20020a630f5c000000b004769f0faab8si9076903pgp.740.2023.01.09.04.46.58; Mon, 09 Jan 2023 04:47:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237207AbjAIM2N (ORCPT + 52 others); Mon, 9 Jan 2023 07:28:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237193AbjAIM2E (ORCPT ); Mon, 9 Jan 2023 07:28:04 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1EA551C115 for ; Mon, 9 Jan 2023 04:27:57 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D1EF41042; Mon, 9 Jan 2023 04:28:38 -0800 (PST) Received: from e126815.warwick.arm.com (e126815.arm.com [10.32.32.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0BD313F67D; Mon, 9 Jan 2023 04:27:54 -0800 (PST) From: James Clark To: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com Cc: James Clark , Catalin Marinas , Will Deacon , Nathan Chancellor , Nick Desaulniers , Tom Rix , "Steven Rostedt (Google)" , Florent Revest , "Masami Hiramatsu (Google)" , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] arm64: Fix build with CC=clang, CONFIG_FTRACE=y and CONFIG_STACK_TRACER=y Date: Mon, 9 Jan 2023 12:27:43 +0000 Message-Id: <20230109122744.1904852-1-james.clark@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 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 --- 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