]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: Assert the size of netdev_featres_t
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 27 Apr 2018 20:11:14 +0000 (13:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Apr 2018 02:50:36 +0000 (22:50 -0400)
commit3ac93261947d989601f321eb1cd46562f8166c51
tree560ca8bcc6bae44af98c94846a52962094bca987
parent92869a4ce38610b3b248caf77bc11098cf5a4e73
net: core: Assert the size of netdev_featres_t

We have about 53 netdev_features_t bits defined and counting, add a
build time check to catch when an u64 type will not be enough and we
will have to convert that to a bitmap. This is done in
register_netdevice() for convenience.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c