]> Git Repo - linux.git/commit
checkpatch: allow multiple const * types
authorJoe Perches <[email protected]>
Wed, 6 Aug 2014 23:10:50 +0000 (16:10 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Aug 2014 01:01:28 +0000 (18:01 -0700)
commit1574a29f8e769998fe3e55eb6030dc61e3d09ccd
tree4826d2385418e45f61a6d2003097697f63352a27
parente2826fd07029e14285c178b41b18f6edc3b15a84
checkpatch: allow multiple const * types

checkpatch's $Type variable does not match declarations of multiple
const * types.

This can produce false positives for things like:

  $ ./scripts/checkpatch.pl -f drivers/staging/comedi/comedidev.h
  WARNING: Missing a blank line after declarations
  #60: FILE: drivers/staging/comedi/comedidev.h:60:
  +       const struct comedi_lrange *range_table;
  +       const struct comedi_lrange *const *range_table_list;

Fix the $Type variable to support matching multiple "* const" uses.

Signed-off-by: Joe Perches <[email protected]>
Reported-by: Hartley Sweeten <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl
This page took 0.052489 seconds and 4 git commands to generate.