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 D0F09C00140 for ; Thu, 18 Aug 2022 21:37:46 +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=0lNSHKXHySTmRGDvJPn/74Bhf+QM/VwW0xA7xGGBOAY=; b=jCM/UU/pjpOUCk IB7c2oqK6V1jiTUiSNw5VbRLRtdazx8bmv2gNbVK+Fs55weFUPF6JqcoA6GKKjJL/cL1uKEcrrUYB oGWKc8uXoF5KdsXXbuXa3m5hu7q9MMjePFk5QOOLkq75B29kB4ImCFNe9ew+dvI+PG7HGJ/cWLJt5 J9fHiMwATa5ImIVpUi58/zJAmrahp+WEs6FYSr4pqKJ94iuUa68tj4eFm24QEP8Yeuwyym1A+ia5a Jb1mFcezrpAha/pVqE6CZi1Rm4d0xC8K8nXAytx4ZRHNgBpnplp4KaTp7t4dYvzfH3VZ5KO8+mbgo W2LBkUnxllYlusifOPMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOnC0-009v6v-Fb; Thu, 18 Aug 2022 21:36:44 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOnBh-009uxn-5y for linux-arm-kernel@lists.infradead.org; Thu, 18 Aug 2022 21:36:26 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 9199361662; Thu, 18 Aug 2022 21:36:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC041C433D7; Thu, 18 Aug 2022 21:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660858584; bh=AbOSncGNjeSjYKcatWl3jR/2gE4yVz5EIWRtPWWpJUA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dg9jJR99wAg239gZKqxqX5pHMdKzgW+s2BYRjvzC/gweyZ0aNHbAeS2zDdIUaxzZc nL9uLD5zUDvgIVa5Vqt7XR9IikcJgaY3GQz195xPYM7NBSCAuJ4vszLIntw0fXkG2K PbVtVfEv7Phfhd3T5CGmKmsicU3R13ITEeB3xPaoAV9Imv/Mk4OWhoS1IDI8vUm2Nh 1rDDIIqQzCfbBLX28VqMw5zGJMVFb4K2pucdUxZvnX9jYiqnR6PQlaEqJvafrYC3Sm atnBj0+pHgU0/qMgIAgaKi6nXks3C83wunqfEikCw+qvaInf3Ntae83NlK6QZi7B6j nIT2TxXz1E7mA== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark.Rutland@arm.com, linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 2/3] arm64/sysreg: Guard SYS_FIELD_ macros for asm Date: Thu, 18 Aug 2022 22:36:12 +0100 Message-Id: <20220818213613.733091-3-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220818213613.733091-1-broonie@kernel.org> References: <20220818213613.733091-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=788; i=broonie@kernel.org; h=from:subject; bh=AbOSncGNjeSjYKcatWl3jR/2gE4yVz5EIWRtPWWpJUA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBi/rDLILc8vLKCBaDClLAQjqxYc7w2HeS0OOV6gt05 MMYIPpWJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYv6wywAKCRAk1otyXVSH0EbFB/ 9NjMtaDx+03c3FkMXQDsheaAAIN34X3pY9yxoSOlr4TCpkyH0FJqTuZb4DlhKyULXrwApKIcHtJUOc pUVFM148OmCEkw2Ym7iyPqICDTUI5qpOVFpyVNAVnJxPS3FZFB/PW/5Uy3jTTXFh0aANSRp8aa7IE0 vQI5xYzjd27knRJovKMfoakQndrir2Jl9X0trocd25Z1qGvnAzrveog3VaOwyjMiCFXdDeQWA8bEfe 5/VwjIhUwDEZks1+kh0Afo8JE0eDa1uyF2uRYIa8H+tXLfkvf7xZbmAC8ZbyC04UBsmMsk0wasd1oC SUCP0T2UDrujqEPoCCb50lXKea3B1Y 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-20220818_143625_303314_4F653DAE X-CRM114-Status: GOOD ( 12.58 ) 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 The SYS_FIELD_ macros are not safe for assembly contexts, move them inside the guarded section. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index c67002677015..818df938a7ad 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -1210,8 +1210,6 @@ par; \ }) -#endif - #define SYS_FIELD_GET(reg, field, val) \ FIELD_GET(reg##_##field##_MASK, val) @@ -1221,4 +1219,6 @@ #define SYS_FIELD_PREP_ENUM(reg, field, val) \ FIELD_PREP(reg##_##field##_MASK, reg##_##field##_##val) +#endif + #endif /* __ASM_SYSREG_H */ -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel