commit | afe64245af9f58267e7fa8fb76ad5650ee7ec25f | [log] [tgz] |
---|---|---|
author | Michael Zhivich <mzhivich@akamai.com> | Mon Apr 08 10:48:45 2019 -0400 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 08 16:30:43 2019 -0700 |
tree | 2163e312bce8d9f0288132da3c97ecf679fe6d24 | |
parent | 3c5189ad70995200bb5c15b5fc9bc81a35febcf4 [diff] |
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>