diff options
author | Mark Brown <broonie@kernel.org> | 2022-08-18 22:36:12 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-08-23 11:26:00 +0100 |
commit | a10edea4efbba4e8756f493781e953dd3592f24a (patch) | |
tree | 0260493300e646981eba0a45c6bb041cbb67ee45 /arch/arm64 | |
parent | 02e483f8d414cc4f467389843d61b63bbbbcd892 (diff) | |
download | linux-a10edea4efbba4e8756f493781e953dd3592f24a.tar.bz2 |
arm64/sysreg: Guard SYS_FIELD_ macros for asm
The SYS_FIELD_ macros are not safe for assembly contexts, move them inside
the guarded section.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220818213613.733091-3-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/sysreg.h | 4 |
1 files 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 */ |