From: Joe Perches Date: Thu, 3 Apr 2014 21:49:13 +0000 (-0700) Subject: checkpatch: add checks for constant non-octal permissions X-Git-Tag: v3.15-rc1~106^2~91 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2435880fe5cd51cd73c403aa4c07eadc3de799db;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed