]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dmaengine: Replace zero-length array with flexible-array
authorChelsy Ratnawat <chelsyratnawat2001@gmail.com>
Sat, 30 Aug 2025 13:26:33 +0000 (06:26 -0700)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Sep 2025 06:30:49 +0000 (12:00 +0530)
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>
drivers/dma/imx-sdma.c

index 02a85d6f1bea2df7d355858094c0c0b0bd07148e..ed9e56de5a9b9484c6598d438f66a836504818be 100644 (file)
@@ -256,7 +256,7 @@ struct sdma_script_start_addrs {
        /* End of v3 array */
        union { s32 v3_end; s32 mcu_2_zqspi_addr; };
        /* End of v4 array */
-       s32 v4_end[0];
+       s32 v4_end[];
 };
 
 /*