]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: improve missing blank line after declarations test
authorJoe Perches <joe@perches.com>
Thu, 22 May 2014 00:43:42 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:42 +0000 (10:43 +1000)
commit85c084f6ff2afa3cc8e1b0ebc2a225aaac58d6af
tree201e2e93c11425ffa4cc33dcc7680318826f7908
parent752c6d125eadf08c855a17f3e50ff7824b94590d
checkpatch: improve missing blank line after declarations test

A couple more modifications to the declarations tests.

o Declarations can also be bitfields so exclude things with a colon
o Make sure the current and previous lines are indented the same
  to avoid matching some macro where a struct type is passed on
  the previous line like:

next = list_entry(buffer->entry.next,
  struct binder_buffer, entry);
if (buffer_start_page(next) == buffer_end_page(buffer))

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