aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2024-06-29 06:58:42 +0000
committerRafael J. Wysocki <[email protected]>2024-07-01 18:06:02 +0000
commitcfff1997aafa25ea98c2ceb7251642276745266a (patch)
tree3d0e1c8aff92ff8ea1d2bc8067c528ab8bc75617 /rust/helpers.c
parentACPI: PMIC: Replace open coded be16_to_cpu() (diff)
downloadkernel-cfff1997aafa25ea98c2ceb7251642276745266a.tar.gz
kernel-cfff1997aafa25ea98c2ceb7251642276745266a.zip
ACPI: PMIC: Constify struct pmic_table
'struct pmic_table' 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, as an example: Before: ====== text data bss dec hex filename 3811 786 0 4597 11f5 drivers/acpi/pmic/intel_pmic_xpower.o text data bss dec hex filename 4147 450 0 4597 11f5 drivers/acpi/pmic/intel_pmic_xpower.o Signed-off-by: Christophe JAILLET <[email protected]> Link: https://patch.msgid.link/a6c9b1bcdf259adabbcaf91183d3f5ab87a98600.1719644292.git.christophe.jaillet@wanadoo.fr Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions