Skip to content

Commit a6b04f0

Browse files
committed
checkpatch: remove VMLINUX_SYMBOL() check
Now that VMLINUX_SYMBOL() is no-op and being removed, let's stop checking VMLINUX_SYMBOL(). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
1 parent a621438 commit a6b04f0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

scripts/checkpatch.pl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5121,16 +5121,6 @@ sub process {
51215121
}
51225122
}
51235123

5124-
# make sure symbols are always wrapped with VMLINUX_SYMBOL() ...
5125-
# all assignments may have only one of the following with an assignment:
5126-
# .
5127-
# ALIGN(...)
5128-
# VMLINUX_SYMBOL(...)
5129-
if ($realfile eq 'vmlinux.lds.h' && $line =~ /(?:(?:^|\s)$Ident\s*=|=\s*$Ident(?:\s|$))/) {
5130-
WARN("MISSING_VMLINUX_SYMBOL",
5131-
"vmlinux.lds.h needs VMLINUX_SYMBOL() around C-visible symbols\n" . $herecurr);
5132-
}
5133-
51345124
# check for redundant bracing round if etc
51355125
if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) {
51365126
my ($level, $endln, @chunks) =

0 commit comments

Comments
 (0)