Commit graph android_kernel_sony_sdm845/scripts/const_structs.checkpatch
Message SHA1
const_structs.checkpatch: remove drm_connector from the list
In some cases drm_connector_funcs cannot be const. For example,
if the connector is created in one module, and it's passed to
another module and is allowed to be changed by that module as
that module has specific info required to implement it.

CRs-Fixed: 2140653
Change-Id: I9c8c39c1e4a315f5b66aba975f9c93172a05fffe
Signed-off-by: Ray Zhang <rayz@codeaurora.org>

Ray Zhang   authored and   Gerrit - the friendly Code Review server   commited 2018-02-04 21:39:49 -08:00
afb903f28c
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>

Joe Perches   authored and   Linus Torvalds   commited 2016-10-11 15:06:30 -07:00
15c03cfeab
checkpatch: externalize the structs that should be const
Make it easier to add new structs that should be const.

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

Joe Perches   authored and   Linus Torvalds   commited 2016-10-11 15:06:30 -07:00
bf1fa1dae6