diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-08-06 15:30:16 +0200 |
---|---|---|
committer | Neeraj Upadhyay <neeraj.upadhyay@kernel.org> | 2024-08-15 00:14:48 +0530 |
commit | 8f35fefad06323ab8ad5915bb7c6bc1a684cb8b5 (patch) | |
tree | f894c54bcc4c05fa85554deb1c6d32f384102dde /lib/memcpy_kunit.c | |
parent | f1fd0e0bb12d09ca0564425b8af76fddf2e380fb (diff) |
refscale: Constify struct ref_scale_ops
'struct ref_scale_ops' are not modified in these drivers.
Constifying this structure moves some data to a read-only section, so
increase overall security.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
34231 4167 736 39134 98de kernel/rcu/refscale.o
After:
=====
text data bss dec hex filename
35175 3239 736 39150 98ee kernel/rcu/refscale.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: "Paul E. McKenney" <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
Diffstat (limited to 'lib/memcpy_kunit.c')
0 files changed, 0 insertions, 0 deletions