]> Pileus Git - ~andy/linux/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)
commit31070b5d4490c6c876e0d3b093e5d5b05e4027fa
tree7d6a71fcb471bdc4f82e6fc101d8043e966f1d15
parent3e2232f2d03ffa531e31662c447496ec2552d85b
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