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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 1daede8 commit 981d497

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)