Skip to content

Commit 56b77ba

Browse files
Prathu Baroniactmarinas
authored andcommitted
arm64/cpucaps: increase string width to properly format cpucaps.h
The lengthiest capability is `WORKAROUND_TRBE_OVERWRITE_FILL_MODE` and its length is 35 characters so increase the width of left justified strings to 40 and adjust the tab space for `ARM64_NCAPS` accordingly. Now the generated cpucaps.h is properly formatted. Signed-off-by: Prathu Baronia <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent e34f78b commit 56b77ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/tools/gen-cpucaps.awk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ BEGIN {
2424
}
2525

2626
/^[vA-Z0-9_]+$/ {
27-
printf("#define ARM64_%-30s\t%d\n", $0, cap_num++)
27+
printf("#define ARM64_%-40s\t%d\n", $0, cap_num++)
2828
next
2929
}
3030

3131
END {
32-
printf("#define ARM64_NCAPS\t\t\t\t%d\n", cap_num)
32+
printf("#define ARM64_NCAPS\t\t\t\t\t%d\n", cap_num)
3333
print ""
3434
print "#endif /* __ASM_CPUCAPS_H */"
3535
}

0 commit comments

Comments
 (0)