scripts/checkstack.pl: match all stack sizes for some archs
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 19 Dec 2023 12:49:59 +0000 (20:49 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 Dec 2023 20:22:27 +0000 (12:22 -0800)
commit66d25cbe29f307c0a3c53b1b1efd0f597d0756a1
treec370e4ed33fc0911f97eeb767ed848bf60e26a27
parent52f5628819363cd16efd2b9f35706b33f41842b3
scripts/checkstack.pl: match all stack sizes for some archs

For some unknown reason the regular expression for checkstack only matches
three digit numbers starting with the number "3", or any higher number.
Which means that it skips any stack sizes smaller than 304 bytes.  This
makes the checkstack script a bit less useful than it could be.

Change the script to match any number.  To be filtered out stack sizes can
be configured with the min_stack variable, which omits any stack frame
sizes smaller than 100 bytes by default.

This is similar with commit aab1f809d754 ("scripts/checkstack.pl: match
all stack sizes for s390").

Link: https://lkml.kernel.org/r/20231219125008.23007-4-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkstack.pl