]> git.ipfire.org Git - thirdparty/linux.git/commit
soc: ti: k3-ringacc: Constify struct k3_ring_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 9 Jul 2024 17:41:29 +0000 (19:41 +0200)
committerNishanth Menon <nm@ti.com>
Tue, 6 Aug 2024 20:33:32 +0000 (15:33 -0500)
commitd9483b44c94eba6fa7451caf27cc7e993c8cc568
treee4e19e4444f4c20d660fbd8624861764091c5e7c
parent8400291e289ee6b2bf9779ff1c83a291501f017b
soc: ti: k3-ringacc: Constify struct k3_ring_ops

'struct k3_ring_ops' is not modified in this driver.

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
  17090    3304      32   20426    4fca drivers/soc/ti/k3-ringacc.o

After:
=====
   text    data     bss     dec     hex filename
  17266    3144      32   20442    4fda drivers/soc/ti/k3-ringacc.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/cb9dfc18cdf890afa2c53cd74b0b330d6f1c30ab.1720546863.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/k3-ringacc.c