]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita10ebc6d35abc6f797dc900d83f2aaea720e6d5e
tree7e1411de9380c8a312cd4a7c9bb6b83a89d6ceb0
parent22e779c34c515ffd9565b6657a96ee23de406a6b
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