linux/drivers/net/can/usb
Gustavo A. R. Silva 6fc5d84e6d can: etas_es58x: Replace zero-length array with DECLARE_FLEX_ARRAY() helper
Zero-length arrays are deprecated and we are moving towards adopting
C99 flexible-array members, instead. So, replace zero-length array
declaration in union es58x_urb_cmd with the new DECLARE_FLEX_ARRAY()
helper macro.

This helper allows for a flexible-array member in a union.

Link: https://github.com/KSPP/linux/issues/193
Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Acked-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/all/Yw00w6XRcq7B6ub6@work
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-09-06 08:28:26 +02:00
..
etas_es58x can: etas_es58x: Replace zero-length array with DECLARE_FLEX_ARRAY() helper 2022-09-06 08:28:26 +02:00
kvaser_usb can: kvaser_usb: kvaser_usb_hydra: Use kzalloc for allocating only one element 2022-09-05 22:00:42 +02:00
peak_usb net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
ems_usb.c can: ems_usb: fix clang's -Wunaligned-access warning 2022-08-09 09:05:06 +02:00
esd_usb.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
gs_usb.c can: gs_usb: add RX and TX hardware timestamp support 2022-09-06 08:21:47 +02:00
Kconfig can/esd_usb2: Rename esd_usb2.c to esd_usb.c 2022-06-25 13:05:26 +02:00
Makefile can/esd_usb2: Rename esd_usb2.c to esd_usb.c 2022-06-25 13:05:26 +02:00
mcba_usb.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
ucan.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
usb_8dev.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00