]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: ensure kconfig help checks only apply when we are adding help
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:15 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:20 +0000 (16:52 -0700)
commitc71ec6b601655382cbe5a328dfe55e2b83a68334
tree46683d872be3d6976ad895f6ad94996acc06344c
parentb8fa908df022e4363c316bf05fbecbe776629660
checkpatch: ensure kconfig help checks only apply when we are adding help

When checking the length of the help we need to be sure we are seeing the
whole story before erroring.  Firstly we only want to check when adding
the help in the first place.  Second we need to be sure that we are seeing
the end of the entry, nominally when there is no context below or that
context shows the start of the next entry.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl