From: Geert Uytterhoeven Date: Wed, 19 Jun 2019 12:45:55 +0000 (+0200) Subject: dmaengine: sh: usb-dmac: Use [] to denote a flexible array member X-Git-Tag: v5.4-rc1~537^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3dc00b936e5a60ca27be62008482f13bfbc06e3;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Simon Horman Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/sh/usb-dmac.c b/drivers/dma/sh/usb-dmac.c index 0afabf3..17063aa 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)