Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5009053pxb; Tue, 28 Sep 2021 08:44:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqp+xpeD25nPSCVsgTFzaUd1geh5meSRJXV5pibV2+RVwPxP58KYarUNyWjR5K7+fp+sNh X-Received: by 2002:a05:6a00:1307:b0:43d:2b4:419a with SMTP id j7-20020a056a00130700b0043d02b4419amr6265226pfu.62.1632843883774; Tue, 28 Sep 2021 08:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632843883; cv=none; d=google.com; s=arc-20160816; b=zR/cX3KW8Szd0hzIlGZz1Ef1Mxb0YandhQ1obGlJmRlgRUc8/Ksw98mKdqbrhmWr+W TJidZa8TcKrEvh0zqCiPvkRL0IrnSJrjXTrUmQIo+hOhQvXc82o1XoE/iyayNjxnfVig 77Dof6vK/OFCS9xxYryu9TQCcQn9JOM/kqZGHUCgmEw7JqS2bKWL0ZeyNRSOf3HeOaCU Ppp9WJJSU6HFno9XkrdouK5MRC7MFOr3uClgDpincRQvT+yzuIixmWZCF3C32zG29bLV ZjHFQ4CVZPjZpb+ny/DtzeT1PfWZfVAXoKj0Qz4uAeVDEzxe3DJ9ylc5WO1ZGAYo4LVk ZrnA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RLp/E6g7tJf3CJmP7L5GgqL8YfKE50igHibLAeQ+4oE=; b=QHc+wpGugAU+xRFx6bVAz038nHUm81E23kvqLyAvd//oKYm8iHBsLYhfZJxX2Dj5+l fVEqbN21/0oYuWj/cLIC5pWwm75q9DN6lZP3+dyNp8KOQ83EN4Ywol69rvqTNp7sM8tm qlsY5TXXfHEa5y45SFeSDprPOmKawoKWQYz3FbLkeQNLGzcwVt+RVlpd9xSfeHShnGoU SX3JMe6Sncmy76rFn85ZGigRRXwviT4mNk8iN9dX1LVzTKCcdyx0XL2RYoyU39NuiqwH fxVztvYZV/xCJFCmKlF7moH8CqoRtzYXZyZlUM04ia/3jC036Y2I3C0YAQWbjUR/mK7M Dv4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TnEhddhD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pc4si4554278pjb.117.2021.09.28.08.44.28; Tue, 28 Sep 2021 08:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TnEhddhD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241861AbhI1PoV (ORCPT + 99 others); Tue, 28 Sep 2021 11:44:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:60876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241778AbhI1PoI (ORCPT ); Tue, 28 Sep 2021 11:44:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 11AB061354; Tue, 28 Sep 2021 15:42:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843748; bh=Kjod7Dg1Idecfo4RpcY/AygTGl3Rik7I7C/y/vFeIAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TnEhddhDpbfT/qGh4mtxDa35mWR0KNstAx/Tk7QCXEL3tXbJ5M6tj3cCGu7g4qU2b t218VqoaMedlmVE49FLfg0Wd/f59Jyc7RF2zYT2kw0er+0btGRV8r5LsQqLHGKgd4X iUDIAo3muUgv2mnHi/hG8bGek5du5hZF0UjuIgvSQQnFB6bC9/TDGcDBVIW4B+7XgH 8EMSrKFsC9GpSqLsSCv6/I2Cc1zk3EDC0KCZYXxWT+fKulgSioc5jtgLyiKUsfikjg eVf6Bt5LcduS1IGmb0bcdkpPN3DSXhiI234za3TutW2EfApV99fvH/U03+G0LqWSwC DTI5FVY5du/8g== From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev Subject: [PATCH 14/14] [RFC] ARM: forbid ftrace with clang and thumb2_kernel Date: Tue, 28 Sep 2021 17:41:43 +0200 Message-Id: <20210928154143.2106903-15-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210928154143.2106903-1-arnd@kernel.org> References: <20210928154143.2106903-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann clang fails to build kernels with THUMB2 and FUNCTION_TRACER enabled when there is any inline asm statement containing the frame pointer register r7: arch/arm/mach-versatile/dcscb.c:95:2: error: inline asm clobber list contains reserved registers: R7 [-Werror,-Winline-asm] arch/arm/mach-exynos/mcpm-exynos.c:154:2: error: inline asm clobber list contains reserved registers: R7 [-Werror,-Winline-asm] arch/arm/probes/kprobes/actions-thumb.c:449:3: error: inline asm clobber list contains reserved registers: R7 [-Werror,-Winline-asm] Apparently gcc should also have warned about this, and the configuration is actually invalid, though there is some disagreement on the bug trackers about this. Link: https://bugs.llvm.org/show_bug.cgi?id=45826 Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94986 Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0d4f3e2d50ad..7ea95bb40004 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -91,7 +91,7 @@ config ARM select HAVE_FAST_GUP if ARM_LPAE select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL select HAVE_FUNCTION_GRAPH_TRACER if !THUMB2_KERNEL && !CC_IS_CLANG - select HAVE_FUNCTION_TRACER if !XIP_KERNEL + select HAVE_FUNCTION_TRACER if !XIP_KERNEL && !(THUMB2_KERNEL && CC_IS_CLANG) select HAVE_GCC_PLUGINS select HAVE_HW_BREAKPOINT if PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7) select HAVE_IRQ_TIME_ACCOUNTING -- 2.29.2