]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: warn when using extern with function prototypes in .h files
authorJoe Perches <joe@perches.com>
Wed, 11 Sep 2013 21:23:58 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:43 +0000 (15:58 -0700)
commit6b6b8d8c1c68ddb3ca9802671c235f8494b1b5f6
treeaba8963ae8efcc2c6ecaa5cb495e53254fa9d7fc
parentda8fcdfd9918de227a8eb14a64f943a6357ff0ac
checkpatch: warn when using extern with function prototypes in .h files

Using the extern keyword on function prototypes is superfluous visual
noise so suggest removing it.

Using extern can cause unnecessary line wrapping at 80 columns and
unnecessarily long multi-line function prototypes.

Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl