]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: warn on declaration with storage class not at the beginning
authorTobias Klauser <tklauser@distanz.ch>
Mon, 24 May 2010 21:33:30 +0000 (14:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:07:06 +0000 (08:07 -0700)
commitd6e73892482aa454061bda08347e5eb75f1c5241
tree19a50489a8d974b4841edde9e92aae7ec147756a
parent0f0c97ad5ad986292412ed64a486066686488298
checkpatch: warn on declaration with storage class not at the beginning

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl