aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2022-05-20 19:46:59 +0000
committerMarc Kleine-Budde <[email protected]>2022-05-23 20:00:05 +0000
commit3e88445a3a5afc65929c578fe2ffc03420588993 (patch)
treeda9fae263ad2c89b8e8e9ab91737294c973d43e9 /net/unix/af_unix.c
parentcan: peak_usb: fix typo in comment (diff)
downloadkernel-3e88445a3a5afc65929c578fe2ffc03420588993.tar.gz
kernel-3e88445a3a5afc65929c578fe2ffc03420588993.zip
can: kvaser_usb: silence a GCC 12 -Warray-bounds warning
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). Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Tested-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions