alistair23-linux/drivers/net/can/usb/peak_usb
Arnd Bergmann a2ae6da025 peak_usb: fix clang build warning
Clang points out undefined behavior when building the pcan_usb_pro driver:

drivers/net/can/usb/peak_usb/pcan_usb_pro.c:136:15: error: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Werror,-Wvarargs]

Changing the function prototype to avoid argument promotion in the
varargs call avoids the warning, and should make this well-defined.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-07 09:39:46 -08:00
..
Makefile can: peak_usb: add support for PEAK new CANFD USB adapters 2015-01-28 14:47:06 +01:00
pcan_usb.c can: peak_usb: mark expected switch fall-throughs 2018-07-27 10:40:17 +02:00
pcan_usb_core.c can: peak_usb: mark expected switch fall-throughs 2018-07-27 10:40:17 +02:00
pcan_usb_core.h can: peak_usb: peak_usb_netif_rx(): remove unused parameter "u32 ts_high" 2018-01-05 11:12:08 +01:00
pcan_usb_fd.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-01-19 22:59:33 -05:00
pcan_usb_pro.c peak_usb: fix clang build warning 2019-03-07 09:39:46 -08:00
pcan_usb_pro.h can: peak_usb: export pcan_usb_pro functions 2015-01-28 14:47:06 +01:00