]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: qat - Constify struct pm_status_row
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 14 Oct 2024 19:55:17 +0000 (21:55 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Oct 2024 10:32:36 +0000 (18:32 +0800)
commit288e37216fff631418f26fb39b88f70809a3b6fe
tree266470a2e414dd20aee4f2624929e0d50aad3bd6
parentc4fdae903b2d7bf47df020951a67c690b46bf8b4
crypto: qat - Constify struct pm_status_row

'struct pm_status_row' are not modified in this driver.

Constifying this structure moves some data to a read-only section, so
increases overall security.

Update the prototype of some functions accordingly.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text    data     bss     dec     hex filename
   4400    1059       0    5459    1553 drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.o

After:
=====
   text    data     bss     dec     hex filename
   5216     243       0    5459    1553 drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.c