mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 21:12:43 +00:00
'struct thermal_zone_device_ops' are not modified in these drivers. Constifying these structures moves some data to a read-only section, so increases overall security, especially when the structure holds some function pointers. On a x86_64, with allmodconfig, as an example: Before: ====== text data bss dec hex filename 28116 5168 128 33412 8284 drivers/thermal/armada_thermal.o After: ===== text data bss dec hex filename 28244 5040 128 33412 8284 drivers/thermal/armada_thermal.o Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Frank Li <[email protected]> Reviewed-by: Miquel Raynal <[email protected]> # For Armada Reviewed-by: Niklas Söderlund <[email protected]> Link: https://lore.kernel.org/r/5bba3bf0139e2418b306a0f9a2f1f81ef49e88a6.1748165978.git.christophe.jaillet@wanadoo.fr Signed-off-by: Daniel Lezcano <[email protected]>