checkpatch: add test for repeated const uses
authorJoe Perches <joe@perches.com>
Thu, 16 Apr 2015 19:44:22 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:57 +0000 (09:03 -0400)
commitab7e23f3448e55f4808f443a7b98ded6707701bb
tree7e1411de9380c8a312cd4a7c9bb6b83a89d6ceb0
parentf34e4a4f979c0d39f741bc809127fcf2167a7389
checkpatch: add test for repeated const uses

Using 'const <type> const *' is generally meant to be written 'const
<type> * const'.

Add a test for the miswritten form.

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