Re: [PATCH] dmaengine: Constify struct dma_descriptor_metadata_ops
Vinod Koul <[email protected]> Fri, 17 Jul 2026 18:05:48 +0530
| Newsgroups | gmane.linux.kernel.janitors,gmane.linux.kernel,gmane.linux.ports.arm.kernel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 14 Jul 2026 16:06:33 +0200, Christophe JAILLET wrote:
> '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
>
> [...]
Applied, thanks!
[1/1] dmaengine: Constify struct dma_descriptor_metadata_ops
commit: 338c853b7c3b422fefda195b9b8010e40611c96f
Best regards,
--
~Vinod