Commit 2fdbf2ff authored by James Clark's avatar James Clark Committed by Catalin Marinas
Browse files

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: default avatarJames Clark <james.clark@linaro.org>
Acked-by: default avatarWill Deacon <will@kernel.org>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20250115162600.2153226-3-james.clark@linaro.org


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 00cb1e01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment