projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02e483f
)
arm64/sysreg: Guard SYS_FIELD_ macros for asm
author
Mark Brown
<broonie@kernel.org>
Thu, 18 Aug 2022 21:36:12 +0000
(22:36 +0100)
committer
Will Deacon
<will@kernel.org>
Tue, 23 Aug 2022 10:26:00 +0000
(11:26 +0100)
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>
arch/arm64/include/asm/sysreg.h
patch
|
blob
|
history
diff --git
a/arch/arm64/include/asm/sysreg.h
b/arch/arm64/include/asm/sysreg.h
index
c670026
..
818df93
100644
(file)
--- 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 */