projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'perf-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel...
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
scripts
/
headers_check.pl
diff --git
a/scripts/headers_check.pl
b/scripts/headers_check.pl
index db1dd7a549f2b9e1259148c39175ad6ee6df3d02..50d6cfd1fa778808b659a461884113de502f3f99 100644
(file)
--- a/
scripts/headers_check.pl
+++ b/
scripts/headers_check.pl
@@
-28,11
+28,12
@@
my $lineno = 0;
my $filename;
foreach my $file (@files) {
my $filename;
foreach my $file (@files) {
- local *FH;
$filename = $file;
$filename = $file;
- open(FH, "<$filename") or die "$filename: $!\n";
+
+ open(my $fh, '<', $filename)
+ or die "$filename: $!\n";
$lineno = 0;
$lineno = 0;
- while ($line = <
FH
>) {
+ while ($line = <
$fh
>) {
$lineno++;
&check_include();
&check_asm_types();
$lineno++;
&check_include();
&check_asm_types();
@@
-40,7
+41,7
@@
foreach my $file (@files) {
&check_declarations();
# Dropped for now. Too much noise &check_config();
}
&check_declarations();
# Dropped for now. Too much noise &check_config();
}
- close
FH
;
+ close
$fh
;
}
exit $ret;
}
exit $ret;
@@
-78,7
+79,7
@@
sub check_config
}
my $linux_asm_types;
}
my $linux_asm_types;
-sub check_asm_types
()
+sub check_asm_types
{
if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
return;
{
if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
return;