1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-19 04:44:09 +00:00
Michael Zhivich afe64245af ethtool: avoid signed-unsigned comparison in ethtool_validate_speed()
When building C++ userspace code that includes ethtool.h
with "-Werror -Wall", g++ complains about signed-unsigned comparison in
ethtool_validate_speed() due to definition of SPEED_UNKNOWN as -1.

Explicitly cast SPEED_UNKNOWN to __u32 to match type of
ethtool_validate_speed() argument.

Signed-off-by: Michael Zhivich <mzhivich@akamai.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-08 16:30:43 -07:00
..
2019-01-28 08:13:52 +01:00
2019-01-07 08:45:47 -08:00
2019-03-07 18:32:01 -08:00
2019-01-24 11:11:42 -07:00
2019-01-05 09:50:07 -08:00
2019-02-14 11:51:51 -05:00
2018-12-20 19:13:07 +01:00
2019-01-06 12:21:11 -08:00
2019-02-18 15:39:49 -05:00
2018-12-19 09:40:13 +01:00
2018-12-16 12:15:25 -08:00
2019-01-22 10:21:45 +01:00
2019-02-14 11:51:51 -05:00
2019-02-01 15:00:55 -08:00