17 Oct, 2020
2 commits
-
All usages of include/linux of these are const pointers, and all instances
in the kernel except one, that are not const can be made const (patches
have been posted for those separately).Signed-off-by: Rikard Falkeborn
Signed-off-by: Andrew Morton
Reviewed-by: Linus Walleij
Acked-by: Manivannan Sadhasivam
Cc: Joe Perches
Cc: Andreas Färber
Cc: Rikard Falkeborn
Link: https://lkml.kernel.org/r/20200830224352.37114-1-rikard.falkeborn@gmail.com
Signed-off-by: Linus Torvalds -
All usages of phy_ops in include/linux uses const phy_ops * and all
instances of phy_ops in the kernel that are not const already can be made
const (patches have been posted for those separately).Suggested-by: Joe Perches
Signed-off-by: Rikard Falkeborn
Signed-off-by: Andrew Morton
Cc: Kishon Vijay Abraham I
Cc: Vinod Koul
Link: https://lkml.kernel.org/r/20200824214132.9072-1-rikard.falkeborn@gmail.com
Signed-off-by: Linus Torvalds
08 Aug, 2020
1 commit
-
Add regulator_ops to expected to be const list.
Signed-off-by: Joe Perches
Signed-off-by: Andrew Morton
Cc: Pi-Hsun Shih
Cc: Liam Girdwood
Cc: Mark Brown
Cc: Benson Leung
Cc: Enric Balletbo i Serra
Cc: Guenter Roeck
Cc: Rikard Falkeborn
Link: http://lkml.kernel.org/r/dab1ba1aa03a8236933cfb7a28937efb0b808f13.camel@perches.com
Signed-off-by: Linus Torvalds
12 Oct, 2016
2 commits
-
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
Acked-by: Kees Cook
Cc: Julia Lawall
Cc: Andy Whitcroft
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
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
Cc: Julia Lawall
Cc: Kees Cook
Cc: Andy Whitcroft
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds