]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: ignore some octal permissions of 0
authorJoe Perches <joe@perches.com>
Tue, 6 Feb 2018 23:38:49 +0000 (15:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:45 +0000 (18:32 -0800)
commit580cc92685146caa9028f6cd63ca3289f39e3346
tree5309ec04ed1ada851c738a010b0244073defe113
parent158e6c3bd4e2cf1bfdd0230bbe3ddf8772c3a79b
checkpatch: ignore some octal permissions of 0

module_param and create_proc uses with a permissions use of a single 0 are
"special" and should not emit any warning.

module_param uses with permission 0 are not visible in sysfs

create_proc uses with permission 0 use a default permission

Link: http://lkml.kernel.org/r/b6583611bb529ea6f6d43786827fddbabbab0a71.1513190059.git.joe@perches.com
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
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