]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: add tests for function pointer style misuses
authorJoe Perches <joe@perches.com>
Fri, 3 Jan 2014 03:10:17 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:17 +0000 (14:10 +1100)
commit7a3a6a7dfd77a5dc53479b0ea5fdd89da674fa17
tree605168c6967b71c23cef3def57893b372dc59baa
parent492a525f26e47116fd97495745c44a697ddcabf1
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: Josh Triplett <josh@joshtriplett.org>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl