[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 03 Mar 2016 16:43:57 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: nicolas.dichtel@...nd.com
Cc: netdev@...r.kernel.org, ben@...adent.org.uk,
nikolay@...ulusnetworks.com
Subject: Re: [PATCH net-next v2 2/2] ethtool.h: define INT_MAX for userland
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Date: Tue, 1 Mar 2016 17:41:04 +0100
> INT_MAX needs limits.h in userland.
> When ethtool.h is included by a userland app, we got the following error:
>
> .../usr/include/linux/ethtool.h: In function 'ethtool_validate_speed':
> .../usr/include/linux/ethtool.h:1471:18: error: 'INT_MAX' undeclared (first use in this function)
> return speed <= INT_MAX || speed == SPEED_UNKNOWN
> ^
>
> Fixes: e02564ee334a ("ethtool: make validate_speed accept all speeds between 0 and INT_MAX")
> CC: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Applied.
Powered by blists - more mailing lists