]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: make the memory barrier test noisier
authorJoe Perches <joe@perches.com>
Tue, 5 Nov 2013 05:56:56 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:56:56 +0000 (16:56 +1100)
commit7d0b0ca2b98d6de714dc05a87fff48bb47ebd338
treeb51e2167bb733a2b379958a934dc9c8c0287c2cf
parentf642d20e95bfc967614f8b524506f4669d1e13b5
checkpatch: make the memory barrier test noisier

Peter Zijlstra prefers that comments be required near uses of memory
barriers.

Change the message level for memory barrier uses from a --strict test only
to a normal WARN so it's always emitted.

This might produce false positives around insertions of memory barriers
when a comment is outside the patch context block.

And checkpatch is still stupid, it only looks for existence of any
comment, not at the comment content.

Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl