Files
linux-rockchip/include/linux
Nicolas Dichtel b5d3755a22 uapi: define DIV_ROUND_UP for userland
DIV_ROUND_UP is defined in linux/kernel.h only for the kernel.
When ethtool.h is included by a userland app, we got the following error:

include/linux/ethtool.h:1218:8: error: variably modified 'queue_mask' at file scope
  __u32 queue_mask[DIV_ROUND_UP(MAX_NUM_QUEUE, 32)];
        ^

Let's add a common definition in uapi and use it everywhere.

Fixes: ac2c7ad0e5 ("net/ethtool: introduce a new ioctl for per queue setting")
CC: Kan Liang <kan.liang@intel.com>
Suggested-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-04 16:10:36 -05:00
..
2016-02-06 13:46:59 +02:00
2016-02-04 18:26:08 +01:00
2016-03-01 16:07:29 -05:00
2016-03-01 17:28:00 -05:00
2016-01-30 13:35:32 -08:00
2016-02-11 09:59:22 -05:00
2016-01-20 17:09:18 -08:00
2016-02-03 08:28:43 -08:00
2016-02-03 08:28:43 -08:00
2016-01-22 17:02:18 -08:00
2016-02-20 00:21:44 -05:00
2016-02-11 18:35:48 -08:00
2016-02-11 18:35:48 -08:00
2016-03-01 17:36:47 -05:00
2016-02-11 03:54:14 -05:00