]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/sysreg: Enforce whole word match for open/close tokens
authorJames Clark <james.clark@linaro.org>
Wed, 15 Jan 2025 16:25:56 +0000 (16:25 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 14 Mar 2025 17:54:44 +0000 (17:54 +0000)
commit2fdbf2ff388441476aae5d914a04c47b247b5e7b
tree9c52c75d3a6ac9506652ad868e5c9fdc8c221a41
parent00cb1e01cd29c664dcd22cabc25be410e2c7faa7
arm64/sysreg: Enforce whole word match for open/close tokens

Opening and closing tokens can also match on words with common prefixes
like "Endsysreg" vs "EndsysregFields". This could potentially make the
script go wrong in weird ways so make it fall through to the fatal
unhandled statement catcher if it doesn't fully match the current
block.

Closing ones also get expect_fields(1) to ensure nothing other than
whitespace follows.

Signed-off-by: James Clark <james.clark@linaro.org>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20250115162600.2153226-3-james.clark@linaro.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/tools/gen-sysreg.awk