]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: handle missing #if open in context
authorAndy Whitcroft <apw@canonical.com>
Thu, 15 Jan 2009 21:51:04 +0000 (13:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2009 00:39:38 +0000 (16:39 -0800)
commit05e056f4c7a9b77aa600699700722651cbbb34c7
tree7ebce7fae5d7d989952bbc152aa270043445ab1c
parente9dd60c97de474faeca62c96158db9a9e9b66ea7
checkpatch: handle missing #if open in context

If the #if opening statement is not in the context then the context stack
can be empty.  Handle this by ensuring there is always a blank entry in
the stack.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Tested-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl