soc: ti: knav_qmss: Constify struct knav_range_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 23 Jun 2024 16:11:31 +0000 (18:11 +0200)
committerNishanth Menon <nm@ti.com>
Thu, 27 Jun 2024 22:45:28 +0000 (17:45 -0500)
commitca16cb2b9073e2f2a968a04c794275aa21ee1aa3
tree408c444db2fdb38af5acc58cad05fc8762d9e814
parentf1de10ae7bbfbb2c443bf18f15e4b1b497868b45
soc: ti: knav_qmss: Constify struct knav_range_ops

'struct knav_range_ops' is 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
   7498    1193       0    8691    21f3 drivers/soc/ti/knav_qmss_acc.o

After:
=====
   text    data     bss     dec     hex filename
   7566    1145       0    8711    2207 drivers/soc/ti/knav_qmss_acc.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/a8b4b428f97fc584f38bf45100aa9da241aeb935.1719159074.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/knav_qmss.h
drivers/soc/ti/knav_qmss_acc.c
drivers/soc/ti/knav_qmss_queue.c