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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A7590C433FE for ; Mon, 31 Jan 2022 22:06:52 +0000 (UTC) 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zPtQDzZTBW4XW9wDZ9ebLjYe0BjNNYTOFCpCMvfM8b8=; b=w5zdEdBCShyMcu IkbBMHy+fKXU1uHIOrNdrEMF4WKBA3NDD2syXlIboBqMKLPlV5+bmuJGFBZF5I4B/8vFfKPNkhkOF pIOH+XJfaeE4u1QJXtf2kug5m2EX5Fn7d6zldqMSESlikkm/WS8T+e15gUK8oNUdCQVNHF5BjNqRN SShtg7cBfms2FU7vtR+Dxa1TNV82x3Me1p9Q9yvUyRGHX+s41scK2fWdMFsBPRnpKJjzYU6W1M87Y UUUIXA37/9by7F1AzEH97msyg0NhhQq5XfGICnqhEQxeqaa2jAPhkXONP8iOzEoUV9GHHlU8MegVz feA2aAUR71UQp80Fq7Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEenP-00Ai2k-5H; Mon, 31 Jan 2022 22:05:11 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEenL-00Ai2I-3S for linux-arm-kernel@lists.infradead.org; Mon, 31 Jan 2022 22:05:08 +0000 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 13376D6E; Mon, 31 Jan 2022 14:05:01 -0800 (PST) Received: from bogus (unknown [10.57.39.189]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A93733F718; Mon, 31 Jan 2022 14:04:58 -0800 (PST) Date: Mon, 31 Jan 2022 22:04:22 +0000 From: Sudeep Holla To: Ard Biesheuvel Cc: linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, Steven Rostedt , Cristian Marussi , Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , Linus Walleij , Masami Hiramatsu Subject: Re: [PATCH v2 10/12] drivers/firmware/scmi: disable ftrace for Clang Thumb2 builds Message-ID: <20220131220422.7u4i2knzaq4qt4zp@bogus> References: <20220131170347.381551-1-ardb@kernel.org> <20220131170347.381551-11-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220131170347.381551-11-ardb@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220131_140507_237229_828C0EBB X-CRM114-Status: GOOD ( 10.64 ) 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 On Mon, Jan 31, 2022 at 06:03:45PM +0100, Ard Biesheuvel wrote: > The SMC calling convention designates R0-R7 as input registers in > AArch32 mode, and this conflicts with the compiler's use of R7 as a > frame pointer when building in Thumb2 mode. Generally, we don't enable > the frame pointer, and GCC happily enables the -pg profiling hooks > without them. However, Clang refuses, and errors out with the message > below: > > drivers/firmware/arm_scmi/smc.c:152:2: error: write to reserved register 'R7' > arm_smccc_1_1_invoke(scmi_info->func_id, 0, 0, 0, 0, 0, 0, 0, &res); > ^ > include/linux/arm-smccc.h:550:4: note: expanded from macro 'arm_smccc_1_1_invoke' > arm_smccc_1_1_smc(__VA_ARGS__); \ > ^ > Let's just disable ftrace for the compilation unit when building this > configuration. > Acked-by: Sudeep Holla -- Regards, Sudeep _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel