diff options
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5c7fd1a4f930..705a0439b39d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2224,6 +2224,15 @@ sub process { | |||
2224 | } | 2224 | } |
2225 | } | 2225 | } |
2226 | 2226 | ||
2227 | # make sure symbols are always wrapped with VMLINUX_SYMBOL() ... | ||
2228 | # all assignments may have only one of the following with an assignment: | ||
2229 | # . | ||
2230 | # ALIGN(...) | ||
2231 | # VMLINUX_SYMBOL(...) | ||
2232 | if ($realfile eq 'vmlinux.lds.h' && $line =~ /(?:(?:^|\s)$Ident\s*=|=\s*$Ident(?:\s|$))/) { | ||
2233 | WARN("vmlinux.lds.h needs VMLINUX_SYMBOL() around C-visible symbols\n" . $herecurr); | ||
2234 | } | ||
2235 | |||
2227 | # check for redundant bracing round if etc | 2236 | # check for redundant bracing round if etc |
2228 | if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) { | 2237 | if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) { |
2229 | my ($level, $endln, @chunks) = | 2238 | my ($level, $endln, @chunks) = |