Skip to content
Snippets Groups Projects
user avatar
Michael Zhivich authored
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: default avatarMichael Zhivich <mzhivich@akamai.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
afe64245
History
Name Last commit Last update