checkpatch: fix jiffies comparison and others
authorJoe Perches <joe@perches.com>
Thu, 3 Apr 2014 21:49:17 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:13 +0000 (16:21 -0700)
commit447432f32328dcd081ae5e23f27d2ffa19f2ecf8
treee75c405d4ebb8fb2571ec6494143f203e12ba72f
parent6c8bd7076d79687183126fa7ffaa700fc2007d81
checkpatch: fix jiffies comparison and others

checkpatch could not distinguish between a variable in a struct named
jiffies and the normal jiffies.

foo->jiffies

would emit a "Comparing jiffies" arning.

Update the $Compare variable to do a negative look-behind for "-" when
finding a ">" so that a pointer dereference like -> isn't a comparison.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl