]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add tests for function pointer style misuses
authorJoe Perches <joe@perches.com>
Thu, 23 Jan 2014 23:54:49 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:58 +0000 (16:36 -0800)
commitd54ab4adc17bd0a941950f24b3df76cc5cb5c4d2
tree7d6a71fcb471bdc4f82e6fc101d8043e966f1d15
parentb3a9ceebc5473d311500ec8a52a862056483b843
checkpatch: add tests for function pointer style misuses

Kernel style uses function pointers in this form:
"type (*funcptr)(args...)"

Emit warnings when this function pointer form isn't used.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@shadowen.org>
Cc: Derek Perrin <d.roc16@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl