]> git.baikalelectronics.ru Git - kernel.git/commit
net: make net_device members garp_port and mrp_port conditional
authorTobias Klauser <tklauser@distanz.ch>
Fri, 10 Feb 2017 15:43:50 +0000 (16:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 03:23:39 +0000 (22:23 -0500)
commit32c1d43b8899e64cdb8ba23f2a1496bdd8fc72fb
treed4fd25ce57198133f90c637abdd578094725b587
parent33d97b9eb500205f3304f601209f36b210f6d352
net: make net_device members garp_port and mrp_port conditional

garp_port is only used in net/802/garp.c which is only compiled with
CONFIG_GARP enabled. Same goes for mrp_port which is only used in
net/802/mrp.c with CONFIG_MRP enabled.

Only include the two members in struct net_device if their respective
CONFIG_* is enabled. This saves a few bytes in struct net_device in case
CONFIG_GARP or CONFIG_MRP are not enabled.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h