* [PATCH] SCRIPTS: Correct RE in header CONFIG leak check.
@ 2009-05-10 15:45 Robert P. J. Day
0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2009-05-10 15:45 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Andrew Morton
Correct the regular expression in scripts/headers_check.pl to include
'_' as a valid character in the class; otherwise, the check will
report a "leaked" symbol of CONFIG_A_B_C as merely CONFIG_A.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
---
diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl
index 56f90a4..4414c43 100644
--- a/scripts/headers_check.pl
+++ b/scripts/headers_check.pl
@@ -70,7 +70,7 @@ sub check_prototypes
sub check_config
{
- if ($line =~ m/[^a-zA-Z0-9_]+CONFIG_([a-zA-Z0-9]+)[^a-zA-Z0-9]/) {
+ if ($line =~ m/[^a-zA-Z0-9_]+CONFIG_([a-zA-Z0-9_]+)[^a-zA-Z0-9_]/) {
printf STDERR "$filename:$lineno: leaks CONFIG_$1 to userspace where it is not valid\n";
}
}
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Annoying Kernel Pedantry.
Web page: http://crashcourse.ca
Linked In: http://www.linkedin.com/in/rpjday
Twitter: http://twitter.com/rpjday
========================================================================
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-10 15:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-10 15:45 [PATCH] SCRIPTS: Correct RE in header CONFIG leak check Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®