aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2025-05-25 16:53:31 +0000
committerPratyush Yadav <[email protected]>2025-07-03 14:50:21 +0000
commitd8b73ce1c5fc60cff8628d406caf7a5a5cecb1c7 (patch)
tree4a28999ba742322da8170f312705092a783f762d /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentLinux 6.16-rc1 (diff)
downloadkernel-d8b73ce1c5fc60cff8628d406caf7a5a5cecb1c7.tar.gz
kernel-d8b73ce1c5fc60cff8628d406caf7a5a5cecb1c7.zip
mtd: spi-nor: Constify struct spi_nor_fixups
'struct spi_nor_fixups' are not modified in this driver. Constifying these structures moves some data to a read-only section, so increases overall security, especially when the structure holds some function pointers. On a x86_64, with allmodconfig, as an example: Before: ====== text data bss dec hex filename 23304 13168 0 36472 8e78 drivers/mtd/spi-nor/micron-st.o After: ===== text data bss dec hex filename 23560 12912 0 36472 8e78 drivers/mtd/spi-nor/micron-st.o Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Pratyush Yadav <[email protected]> Signed-off-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/aa641732ba707ce3690217825c3ca7373ffde4f9.1748191985.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions