mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 11:06:03 +02:00
'struct dma_descriptor_metadata_ops' in not modified in these drivers. 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 120635 21584 64 142283 22bcb drivers/dma/xilinx/xilinx_dma.o After: ===== text data bss dec hex filename 120699 21520 64 142283 22bcb drivers/dma/xilinx/xilinx_dma.o Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Sai Sree Kartheek Adivi <s-adivi@ti.com> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Link: https://patch.msgid.link/b0a22171f3ed68e156a2fa84383e99c23ec6b2ff.1784037977.git.christophe.jaillet@wanadoo.fr Signed-off-by: Vinod Koul <vkoul@kernel.org> |
||
|---|---|---|
| .. | ||
| cppi41.c | ||
| dma-crossbar.c | ||
| edma.c | ||
| k3-psil-am62.c | ||
| k3-psil-am62a.c | ||
| k3-psil-am62p.c | ||
| k3-psil-am64.c | ||
| k3-psil-am654.c | ||
| k3-psil-j721e.c | ||
| k3-psil-j721s2.c | ||
| k3-psil-j784s4.c | ||
| k3-psil-j7200.c | ||
| k3-psil-priv.h | ||
| k3-psil.c | ||
| k3-udma-glue.c | ||
| k3-udma-private.c | ||
| k3-udma.c | ||
| k3-udma.h | ||
| Kconfig | ||
| Makefile | ||
| omap-dma.c | ||