diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-06-19 14:45:55 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-06-25 09:57:42 +0530 |
commit | e3dc00b936e5a60ca27be62008482f13bfbc06e3 (patch) | |
tree | 096b21a8c26e43da5c77b9f54fa754272757f001 /drivers/dma/sh | |
parent | ed04b7c57c3383ed4573f1d1d1dbdc1108ba0bed (diff) |
dmaengine: sh: usb-dmac: Use [] to denote a flexible array member
Flexible array members should be denoted using [] instead of [0], else
gcc will not warn when they are no longer at the end of the structure.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/sh')
-rw-r--r-- | drivers/dma/sh/usb-dmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sh/usb-dmac.c b/drivers/dma/sh/usb-dmac.c index 0afabf395930..17063aaf51bc 100644 --- a/drivers/dma/sh/usb-dmac.c +++ b/drivers/dma/sh/usb-dmac.c @@ -57,7 +57,7 @@ struct usb_dmac_desc { u32 residue; struct list_head node; dma_cookie_t done_cookie; - struct usb_dmac_sg sg[0]; + struct usb_dmac_sg sg[]; }; #define to_usb_dmac_desc(vd) container_of(vd, struct usb_dmac_desc, vd) |