diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-07 11:31:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-07 09:39:46 -0800 |
commit | a2ae6da025ed73e4312d983b5e57300bc77090f3 (patch) | |
tree | f5711a97abb8b6e02f12e1f53aeb022b64c2b395 /drivers/target/target_core_alua.c | |
parent | ae9819e339b451da7a86ab6fe38ecfcb6814e78a (diff) |
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>
Diffstat (limited to 'drivers/target/target_core_alua.c')
0 files changed, 0 insertions, 0 deletions