Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274313
b: refs/heads/master
c: c68e587
h: refs/heads/master
i:
  274311: b545292
v: v3
  • Loading branch information
Arnaud Lacombe authored and Michal Marek committed Aug 31, 2011
1 parent 1c85aba commit c80bc72
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c65426ad2cce12a2d72cdb42aa08f7ce946065d
refs/heads/master: c68e58783f20d3eb32b99e1962b26462f2e3195a
14 changes: 14 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,20 @@ sub process {
#print "is_end<$is_end> length<$length>\n";
}

if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) &&
($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
my $flag = $1;
my $replacement = {
'EXTRA_AFLAGS' => 'asflags-y',
'EXTRA_CFLAGS' => 'ccflags-y',
'EXTRA_CPPFLAGS' => 'cppflags-y',
'EXTRA_LDFLAGS' => 'ldflags-y',
};

WARN("DEPRECATED_VARIABLE",
"Use of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacement->{$flag});
}

# check we are in a valid source file if not then ignore this hunk
next if ($realfile !~ /\.(h|c|s|S|pl|sh)$/);

Expand Down

0 comments on commit c80bc72

Please sign in to comment.