Skip to content

Commit ad83ec6

Browse files
committed
checkpatch: Remove checks relating to [smp_]read_barrier_depends()
The [smp_]read_barrier_depends() macros no longer exist, so we don't need to deal with them in the checkpatch script. Acked-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Paul E. McKenney <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent c6cd2e0 commit ad83ec6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5903,8 +5903,7 @@ sub process {
59035903
my $barriers = qr{
59045904
mb|
59055905
rmb|
5906-
wmb|
5907-
read_barrier_depends
5906+
wmb
59085907
}x;
59095908
my $barrier_stems = qr{
59105909
mb__before_atomic|
@@ -5953,12 +5952,6 @@ sub process {
59535952
}
59545953
}
59555954

5956-
# check for smp_read_barrier_depends and read_barrier_depends
5957-
if (!$file && $line =~ /\b(smp_|)read_barrier_depends\s*\(/) {
5958-
WARN("READ_BARRIER_DEPENDS",
5959-
"$1read_barrier_depends should only be used in READ_ONCE or DEC Alpha code\n" . $herecurr);
5960-
}
5961-
59625955
# check of hardware specific defines
59635956
if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@include/asm-@) {
59645957
CHK("ARCH_DEFINES",

0 commit comments

Comments
 (0)