]> git.baikalelectronics.ru Git - kernel.git/commitdiff
arm64/sysreg: Fix typo in Enum element regex
authorAlejandro Tafalla <atafalla@dnyon.com>
Thu, 9 Jun 2022 20:42:18 +0000 (22:42 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 10 Jun 2022 15:23:48 +0000 (16:23 +0100)
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: c868fde0f05a ("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>
arch/arm64/tools/gen-sysreg.awk

index 89bfb74e28de53ca186cf516fe037bde7f152083..5c55509eb43f5d33a14a880d976bbf718f76ffed 100755 (executable)
@@ -253,7 +253,7 @@ END {
        next
 }
 
-/0b[01]+/ && block = "Enum" {
+/0b[01]+/ && block == "Enum" {
        expect_fields(2)
        val = $1
        name = $2