]> git.baikalelectronics.ru Git - kernel.git/commit
const_structs.checkpatch: add frequently used from Julia Lawall's list
authorJoe Perches <joe@perches.com>
Tue, 11 Oct 2016 20:51:59 +0000 (13:51 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Oct 2016 22:06:30 +0000 (15:06 -0700)
commit9f7aa5fe5c2a0e7f69a8c8dfef0d234429fed4c1
treea82043724bf1bdf5eace0e76e1dbe4680c37a06a
parent16e399deb4d12153fbb311c17881db04ee329641
const_structs.checkpatch: add frequently used from Julia Lawall's list

Using const is generally a good idea.

Julia Lawall has created a list of always const and almost always const
structs in the kernel sources.

Link: https://lkml.org/lkml/2016/8/28/95
Add the most frequently used (> 50 cases) that are almost always or
always const.

Link: http://lkml.kernel.org/r/1e16020f8027654db0095bbfbcc11da51025365c.1472664220.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/const_structs.checkpatch