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 3542CC43334 for ; Wed, 29 Jun 2022 10:31:47 +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: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=N7m6rA+SY7Y2ZdVgZ/gE2xn46kXeSvywZgCud9nfU2w=; b=XXvsgt/qGS5ik/ +yIKrk1CpmcfEqbA3Jl94FSVBAigvVubfvEQrO7iC7xQTVN3Qm3P9GW85JgiazwIjJZvSeZn64o+Y 7hCIwe2caoqKX4Qr/qX9oFiGtGPtyJehCOjqTcQrM43wlY1K3nqPndsO6d9ydKLa9EgS1eZmGMAXg Cd30Kp49Q01OW6waJkW42OQ+JDIerDcopz/DyVdM66FUQONrVeGI46cZ9j2XvNzl4AczEf3j5UP5S H9vyBAxpXFG0ThUrEbA1Bisitq4Ia7G6df+2H6pquspV9KPKzHlrAwey0ohtNohcxiOhk2TpdPOat rE0mKa8pmjcdb/JGtcnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Uxx-00B2TK-Qp; Wed, 29 Jun 2022 10:30:37 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Uwp-00B20x-6a for linux-arm-kernel@lists.infradead.org; Wed, 29 Jun 2022 10:29:28 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CC0B4B8227C; Wed, 29 Jun 2022 10:29:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36341C341CB; Wed, 29 Jun 2022 10:29:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656498564; bh=KcNDVGah6acFLtY5arEim8rZJff/2fy0mbc1avPAGhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iremXBofsd8fSgfLpwthYMAmpI/QL7eNJCV49VElcF20Cf/XdE83paheeb7O7nS3U HJCfKI0OkHAyOjt02C80eQywqxLgMkQ9SCL/BuLrsD4xYUMSazQd71aVkhf30yIJ31 sLVQxRavlZq/YxKsOQgZ1gUYS8t9f3UKcI0ncjsTMXISFF9XOg/YzInpLM/mojJuEd Bu+1PutU/JCuQhm9sF/ybF+I187/QmgtZW1R7e7Cc/VSPKb3RzoKnF5rREKUuRD1dD KSf1brwoIXYFXkrX4ow7NRSxdD4XTFYkc8Qc+tioBLj0GoiHXDFDLrbXS4k9AFL3vu 04aVoHAeNDmIQ== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , Joey Gouly , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v6 03/27] arm64/sysreg: Add LINKER_SCRIPT guards for sysreg.h Date: Wed, 29 Jun 2022 11:28:10 +0100 Message-Id: <20220629102834.36569-4-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220629102834.36569-1-broonie@kernel.org> References: <20220629102834.36569-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1663; h=from:subject; bh=KcNDVGah6acFLtY5arEim8rZJff/2fy0mbc1avPAGhg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBivCk9umBGqmxV9ciYJdW1IkZhGUfdU4c3iQmXres1 WQZi+5SJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYrwpPQAKCRAk1otyXVSH0ETKB/ 9kG/hR0QtyhKLFfxPs2OWWcaECXnq2SHAj4uS70JnckKkWJ+BTQ08CHzEZFLBm4CTXek/y6ZBtvghq 6THA2/JRlZAtgRnTzCDPfRjC8lK+TiZHDXW5SMD+uA73OkP74st+/CbNrWMeSGAGhcPvhyEB0jHMKp U3ID3RNFjQMkJ+8bLkp4NNGAOt2/9MGL+dcFMUc4JJMiTLr70+RWyF2oQv6GPIUn7uP924Pl85gsSE EgjieGN+08yrupwsuSrASzym2K74xBT3z9fyLlKeg8dYDjzjE8Hygbz8UvQmRwjfWSuIlQ3okop4fD v0ZqVcTMSnTky2QGqAVoHsqhF1Ymgn 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-20220629_032927_432966_5FE94FAC X-CRM114-Status: GOOD ( 12.30 ) 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 In subsequent patches sysreg.h and gpr-num.h will be included from other headers which can be included from linker scripts (e.g. via cache.h), and contain assember macro directives that don't work in linker scripts (e.g. `.macro` and `.irp`). To avoid needing LINKER_SCRIPT guards in every file which could have a transitive dependency, add those directly to sysreg.h and gpr-num.h. Signed-off-by: Mark Brown --- arch/arm64/include/asm/gpr-num.h | 3 +++ arch/arm64/include/asm/sysreg.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/arch/arm64/include/asm/gpr-num.h b/arch/arm64/include/asm/gpr-num.h index 05da4a7c5788..72c44f63fb41 100644 --- a/arch/arm64/include/asm/gpr-num.h +++ b/arch/arm64/include/asm/gpr-num.h @@ -4,12 +4,15 @@ #ifdef __ASSEMBLY__ +#ifndef LINKER_SCRIPT + .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 .equ .L__gpr_num_x\num, \num .equ .L__gpr_num_w\num, \num .endr .equ .L__gpr_num_xzr, 31 .equ .L__gpr_num_wzr, 31 +#endif /* !LINKER_SCRIPT */ #else /* __ASSEMBLY__ */ diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 42ff95dba6da..6c7be1a2114b 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -1219,6 +1219,7 @@ #ifdef __ASSEMBLY__ +#ifndef LINKER_SCRIPT .macro mrs_s, rt, sreg __emit_inst(0xd5200000|(\sreg)|(.L__gpr_num_\rt)) .endm @@ -1226,6 +1227,7 @@ .macro msr_s, sreg, rt __emit_inst(0xd5000000|(\sreg)|(.L__gpr_num_\rt)) .endm +#endif /* !LINKER_SCRIPT */ #else -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel