Skip to content

Commit 981d497

Browse files
ChelsyRatnawatvinodkoul
authored andcommitted
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>
1 parent 1daede8 commit 981d497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/imx-sdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ struct sdma_script_start_addrs {
256256
/* End of v3 array */
257257
union { s32 v3_end; s32 mcu_2_zqspi_addr; };
258258
/* End of v4 array */
259-
s32 v4_end[0];
259+
s32 v4_end[];
260260
};
261261

262262
/*

0 commit comments

Comments
 (0)