]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add rules to check init attribute and const defects
authorJoe Perches <joe@perches.com>
Tue, 12 Nov 2013 23:10:10 +0000 (15:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:25 +0000 (12:09 +0900)
commit415408c4bf1492d108df0db7368217bd850f4d73
tree2543f6bd1d9aa24249c3d8418c0dc369434aad81
parentcd627ea2975fd9adf806da24a28b0664900ae343
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl