checkpatch: support function pointers for unnamed function definition arguments
authorMiles Chen <miles.chen@mediatek.com>
Fri, 17 Nov 2017 23:28:34 +0000 (15:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Nov 2017 00:10:02 +0000 (16:10 -0800)
commit25bdda2bd68ae3008759f26058f6f9b9bb2b1cc5
tree60fa25852eddc17e4be90c5d50d24a7153a00832
parent4441fca0a27f5f0e2c652584ae9d7abec6255c1f
checkpatch: support function pointers for unnamed function definition arguments

Current unnamed function definition argument does not include function
pointer cases and it reports something like:

  WARNING: function definition argument 'void' should also have an identifier name
  +unsigned int (*dummy)(void);

Support function pointers for unnamed function arguments

Link: http://lkml.kernel.org/r/1505389925-31087-1-git-send-email-miles.chen@mediatek.com
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Acked-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