[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2f8c5516-210e-83a4-669f-9bd9316a845f@candelatech.com>
Date: Fri, 14 Oct 2016 12:46:38 -0700
From: Ben Greear <greearb@...delatech.com>
To: netdev <netdev@...r.kernel.org>
Subject: ethtool.h compile warning on c++
I am getting warnings about sign missmatch.
Maybe make SPEED_UNKNOWN be ((__u32)(0xFFFFFFFF)) ?
from ethtool.h:
#define SPEED_UNKNOWN -1
static inline int ethtool_validate_speed(__u32 speed)
{
return speed <= INT_MAX || speed == SPEED_UNKNOWN;
}
Thanks,
Ben
--
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc http://www.candelatech.com
Powered by blists - more mailing lists