diff options
author | Mark Brown <broonie@kernel.org> | 2022-07-04 18:02:37 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-07-05 11:45:45 +0100 |
commit | f43ff286512ec2da2e1038ab76471e9a07e3a951 (patch) | |
tree | 174fa4a1eeec672604ac3e72fa7055904dd00d5c /arch | |
parent | 9105a295d6f507bac733d9681c15c418d5db8aee (diff) | |
download | linux-f43ff286512ec2da2e1038ab76471e9a07e3a951.tar.gz |
arm64/sysreg: Allow leading blanks on comments in sysreg file
Currently we only accept comments where the # is placed at the start of a
line, allow leading blanks so we can format comments inside definitions in
a more pleasing manner.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220704170302.2609529-4-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch')
-rwxr-xr-x | arch/arm64/tools/gen-sysreg.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/tools/gen-sysreg.awk b/arch/arm64/tools/gen-sysreg.awk index 5c55509eb43f..db461921d256 100755 --- a/arch/arm64/tools/gen-sysreg.awk +++ b/arch/arm64/tools/gen-sysreg.awk @@ -88,7 +88,7 @@ END { # skip blank lines and comment lines /^$/ { next } -/^#/ { next } +/^[\t ]*#/ { next } /^SysregFields/ { change_block("SysregFields", "None", "SysregFields") |