Messages in this thread Patch in this message | | | From | "Geyslan G. Bem" <> | Subject | [PATCH 4/4] usb: host: ehci.h: use flexible array instead of zero-length array | Date | Wed, 9 Dec 2015 16:57:33 -0300 |
| |
C99 standardized flexible arrays 'array[]'. The zero-length ones are old gcc implementation 'array[0]'.
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> --- drivers/usb/host/ehci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 49b91b6..0ee1cdb 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -264,7 +264,7 @@ struct ehci_hcd { /* one per controller */ struct list_head tt_list; /* platform-specific data -- must come last */ - unsigned long priv[0] __aligned(sizeof(s64)); + unsigned long priv[] __aligned(sizeof(s64)); }; /* convert between an HCD pointer and the corresponding EHCI_HCD */ @@ -463,7 +463,7 @@ struct ehci_iso_sched { struct list_head td_list; unsigned span; unsigned first_packet; - struct ehci_iso_packet packet[0]; + struct ehci_iso_packet packet[]; }; /* -- 2.6.3
| |