Re: [PATCH] dmaengine: Constify struct dma_descriptor_metadata_ops
From: Vinod Koul
Date: Fri Jul 17 2026 - 08:39:06 EST
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