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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB1FBC433F5 for ; Tue, 28 Sep 2021 15:50:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AA96760F44 for ; Tue, 28 Sep 2021 15:50:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AA96760F44 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=76/AVnu9NFg1VSaPaThPaDKefBbsEzloR/jiclFWgUU=; b=1hZEeq89IyVCXT kyTfcL/ygZwnga92PlVhxRZwx+MgQVZxfIapigLN0l2zbvwWu7cr+B8abBkzrF9NAKxJjWYkRfb0+ e1BgG2pu3LI9ZB7ZoPJNoswrnwK96Hpy3z5DZCIyU/F5/0GZ4zCRbys8YjQ0XlYKtnkdTy/bCpgVG i9jLwE/7D/Okn8bCF97rYyy5VjsiCLcWGHq6g4zpe40QIeTQqRAMDzUS97babN4Aq6T/tYeAUULQi w1jjzRnqy1Jv0IgojvKcANCkZL/e5pexXkjpVqAtOXDLLPyQDxcW/k7VHjzOC6pu/Zrf0LRuOhBRd Z7cDIF7OGpa6cD1X9JSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFL2-007r95-Ql; Tue, 28 Sep 2021 15:48:13 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVFFV-007oEl-1n for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 15:42:31 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210928_084229_171436_D46368D8 X-CRM114-Status: GOOD ( 13.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel