]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add checks for constant non-octal permissions
authorJoe Perches <joe@perches.com>
Thu, 3 Apr 2014 21:49:13 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:12 +0000 (16:21 -0700)
commitb9d528e7c9d07e2f061f1b9aa0e7e868636a6190
tree0699aa30fb71bf84ac8d0cc295b0b0eaddf52a2b
parenta9b3c7e28b95907bb653c04af4e07b4bd6db512c
checkpatch: add checks for constant non-octal permissions

umode_t permissions are sometimes mistakenly written with decimal
constants.  Verify that numeric permissions are using octal.

Add a list of the most commonly used functions and macros that have
umode_t permissions and the argument position.

Add a $Octal type to $Constant.
Allow $LvalOrFunc to be a pointer indirection too.

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