]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/checkpatch.pl
HID: wacom: wacom_wac_collection() is local to wacom_wac.c
[linux.git] / scripts / checkpatch.pl
index 31031f10fe56b0b15ec44916ca7996e174fd5090..ba03f17ff662a16e6226876aebf71ddff4601f8b 100755 (executable)
@@ -5586,6 +5586,12 @@ sub process {
                        }
                }
 
+# check for smp_read_barrier_depends and read_barrier_depends
+               if (!$file && $line =~ /\b(smp_|)read_barrier_depends\s*\(/) {
+                       WARN("READ_BARRIER_DEPENDS",
+                            "$1read_barrier_depends should only be used in READ_ONCE or DEC Alpha code\n" . $herecurr);
+               }
+
 # check of hardware specific defines
                if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@include/asm-@) {
                        CHK("ARCH_DEFINES",