]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: add rules to check init attribute and const defects
authorJoe Perches <joe@perches.com>
Tue, 5 Nov 2013 05:56:55 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:56:55 +0000 (16:56 +1100)
commitf642d20e95bfc967614f8b524506f4669d1e13b5
tree9f1811dfabdb4168deb6f0c9f2a961610795daf8
parentb85efd3795b8db0b80d9795ebe550105e44b1f4b
checkpatch: add rules to check init attribute and const defects

People get this regularly wrong and it breaks the LTO builds, as it causes
a section attribute conflict.

Add --fix capability too.

Based on a patch from Andi Kleen.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl