Skip to content

Commit ce253b8

Browse files
alikatesctmarinas
authored andcommitted
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: 66847e0 ("arm64: Add sysreg header generation scripting") Signed-off-by: Alejandro Tafalla <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent f539316 commit ce253b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/tools/gen-sysreg.awk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ END {
253253
next
254254
}
255255

256-
/0b[01]+/ && block = "Enum" {
256+
/0b[01]+/ && block == "Enum" {
257257
expect_fields(2)
258258
val = $1
259259
name = $2

0 commit comments

Comments
 (0)