summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Tafalla <atafalla@dnyon.com>2022-06-09 23:42:18 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2022-06-10 18:23:48 +0300
commitce253b8573ce3de1278513395f07118650a49e39 (patch)
tree77e135cd702901604945a0957b352c3790f1f2fe
parentf539316fe8106b4f4b4e95c1e70a31b545523b03 (diff)
downloadlinux-ce253b8573ce3de1278513395f07118650a49e39.tar.xz
arm64/sysreg: Fix typo in Enum element regex
In the awk script, there was a typo with the comparison operator when checking if the matched pattern is inside an Enum block. This prevented the generation of the whole sysreg-defs.h header. Fixes: 66847e0618d7 ("arm64: Add sysreg header generation scripting") Signed-off-by: Alejandro Tafalla <atafalla@dnyon.com> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220609204220.12112-1-atafalla@dnyon.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rwxr-xr-xarch/arm64/tools/gen-sysreg.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/tools/gen-sysreg.awk b/arch/arm64/tools/gen-sysreg.awk
index 89bfb74e28de..5c55509eb43f 100755
--- a/arch/arm64/tools/gen-sysreg.awk
+++ b/arch/arm64/tools/gen-sysreg.awk
@@ -253,7 +253,7 @@ END {
next
}
-/0b[01]+/ && block = "Enum" {
+/0b[01]+/ && block == "Enum" {
expect_fields(2)
val = $1
name = $2