Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D25A1C433ED for ; Tue, 18 May 2021 18:37:53 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 8DFDC611B0 for ; Tue, 18 May 2021 18:37:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8DFDC611B0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=D2jX+CiF3Vlb3Y7LvwPxq2kw0Q4QvCOk2ox1sxYUio0=; b=pKiNdJH7VaaoHeRrQh/mEg8sm fmjm+ISMnBOBv2zfpiQZrX7s2UraDOQ+iY/UoB5fhIEYzNm+CJWSRX/lC1Q732+pX7K9nYM6CibiL bxkvjyocKTBzyYxGYEH4opvl0Pxeen4P8ieyOFN69BymrskYzemynvei39z7ToJgNupseCYr1TE2j G7hLhbqxFv56G9GmqnLsjaXDgnVjnonKneJPMNj4n4JPIte4UT5rltM01yPFoI3MeY0Jhhd5019Ud jmFjBiMvgW/D0bFqpD7u7lJtHquRVam9cX+xomso/3lW8Jb07j4/bCCl7g265ISCSHPrG6l246Qnj LR5X2HvTQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lj4ZS-001cXk-I1; Tue, 18 May 2021 18:35:59 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lj4ZG-001cWZ-DU for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 18:35:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=5j/JI6dz2FO8IRvWtdEOJbsDoOqJ5kIt29fXSnkg8eI=; b=uvDJrIyFbYXmB7eAQKq/Ne1OeX gvo75hqO2np7IK9SOFNklxyymt40xCdcWRdeQ+MEqG8wa0lk9wqzftwGRLkE35rEAe1N6mnGE208q kxfFkbQx/xG3Zb9Mu2SsejB3U6UDxSMTKjr4IBXLBYD9Bt7Sjf27t1vlTZk9VxAow5H87gng+tog8 kIKXJPIllRdNpZOgzv0O+H+kguceER0cFZ4IvTSLthC6GY4V7JZ3pkPmXQ06gBRgw4rrqxibTXahI pvIwgQcaJqF5HD7pr1sFMAYSwmAyFTiJlxnrf04wAj5bmevfzuHymjVob8FTdVxW8FcgkvpQvDg/+ MZXjDgHw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lj4ZE-00Esun-22 for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 18:35:45 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 40B5D6135B; Tue, 18 May 2021 18:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621362943; bh=Xh/fr8+XR7CXP6cX5tXMCfKFfwWroojXbYP32cxCkGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MzsKCNw0JH3EbdQ9aAzwcYwE2NnP9/aIu6TE2lWbMiHXRZjy1SOzzJGQZICYft0cr mLy2PzC1FihdBRiFLXgVidhzpSKrpINQA5EMAcrI7FnN4GL/WpLjS0eMZYEdnJncYs kc7ZhQr0nlj4x09lcnMhl9W4EnSTdQVjsRJ8Bw2loAyXb3b6t5VuTHS9AY2I14g3ac OZ9hKZMnDva6Stn+BMW/l+59NxuHJaYJIoCCiLgeCWp/cO0tv6rKRFYtD3iUSd+qa/ pN1H+8a+atEj2qkO2rs7idyKE3n9np0bm5q6yhkfOe1x9qUMPRfv86+hNCDr8Dl/xR b9q4aHHojtHbQ== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Marc Zyngier , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 1/2] arm64: asmlinkage: Enable use of BTI_C macro in SYM_CODE Date: Tue, 18 May 2021 19:25:48 +0100 Message-Id: <20210518182549.38635-2-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210518182549.38635-1-broonie@kernel.org> References: <20210518182549.38635-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=747; h=from:subject; bh=Xh/fr8+XR7CXP6cX5tXMCfKFfwWroojXbYP32cxCkGA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBgpAarrdUMDwvn0JtqgCjsjVUN6fxqJ5EIj6+hz0hj RTlzeH2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYKQGqwAKCRAk1otyXVSH0Oz9B/ 9NYPoz0m3D5/dTLTiCpGHMplRNVqxUX0OrzezV7McdMGPnJKRjPch6vJ8QHYME8IEKxRmrV7XA82bJ GFTiSPELmJvzUI9Cxqj4zmdlf7hzmqlA7e5HOCtnxDagiOOMJkBhazzDF7ajDmm1MQ6B2mVMNPw/5Q NHAhBcP6kw3Hv9Dzo+OlJou29TMmBGA4OeN9B7IO95P9E+JwVdP+rZm6GyrCwCtrBc7f4RsOE+y4Us oWr6DXx6FwYAB/KDWExBLUIbBvFgOxLXEaLiEdhMkeS4LBtrCMTydWgw8jbU8xCHEuOStD1TjZ/Z0u JdTyJv1iEeBy6H0mPOFNFMOE4mxYQz X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_113544_157724_B95F9E78 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. 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 SYM_CODE sections may require BTI landing pads but won't have them automatically generated by the symbol definiton macros. Make an empty version of the BTI_C macro available when BTI is disabled so that they can more easily create the landing pads if they need them. Signed-off-by: Mark Brown --- arch/arm64/include/asm/linkage.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/include/asm/linkage.h b/arch/arm64/include/asm/linkage.h index ba89a9af820a..d98f9af8b8ec 100644 --- a/arch/arm64/include/asm/linkage.h +++ b/arch/arm64/include/asm/linkage.h @@ -42,6 +42,10 @@ SYM_START(name, SYM_L_WEAK, SYM_A_NONE) \ BTI_C +#else + +#define BTI_C + #endif /* -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel