On 20.05.2022 12:46:59, Jakub Kicinski wrote: > This driver does a lot of casting of smaller buffers to > struct kvaser_cmd_ext, GCC 12 does not like that: > > drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c:489:65: warning: array subscript ‘struct kvaser_cmd_ext[0]’ is partly outside array bounds of ‘unsigned char[32]’ [-Warray-bounds] > drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c:489:23: note: in expansion of macro ‘le16_to_cpu’ > 489 | ret = le16_to_cpu(((struct kvaser_cmd_ext *)cmd)->len); > | ^~~~~~~~~~~ > > Temporarily silence this warning (move it to W=1 builds). > > Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx> > --- > Hi Marc, are you planning another -next PR? Can we take this > directly? Thanks, applied and I'll send a -next PR soonish. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature