]> asedeno.scripts.mit.edu Git - linux.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)
commit3ac305c386f698abccd0523c64a8aef248c89bc6
tree560ca8bcc6bae44af98c94846a52962094bca987
parentc1b28847f7c00906a765516e8291ea2a71add64b
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