Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: Replace zero-length array with flexible-array

Documentation/process/deprecated.rst suggests that zero-length
and one-element arrays are deprecated, flexible-array members
should be used instead.

Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Link: https://lore.kernel.org/r/20250830132633.1803300-1-chelsyratnawat2001@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Chelsy Ratnawat and committed by
Vinod Koul
981d4978 1daede86

+1 -1
+1 -1
drivers/dma/imx-sdma.c
··· 256 256 /* End of v3 array */ 257 257 union { s32 v3_end; s32 mcu_2_zqspi_addr; }; 258 258 /* End of v4 array */ 259 - s32 v4_end[0]; 259 + s32 v4_end[]; 260 260 }; 261 261 262 262 /*