]> git.baikalelectronics.ru Git - kernel.git/commit
net: wrap the wireless pointers in struct net_device in an ifdef
authorJakub Kicinski <kuba@kernel.org>
Thu, 19 May 2022 20:20:54 +0000 (13:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 20:51:54 +0000 (21:51 +0100)
commit6aa6fa6b93340bbd20cd4ec9146862b575ef2047
treeb790596c2d45437fa59fd108d0bc5ef25edca060
parenta3e190fd518aedd0d5a3af8a3cdcc0aaf0c62399
net: wrap the wireless pointers in struct net_device in an ifdef

Most protocol-specific pointers in struct net_device are under
a respective ifdef. Wireless is the notable exception. Since
there's a sizable number of custom-built kernels for datacenter
workloads which don't build wireless it seems reasonable to
ifdefy those pointers as well.

While at it move IPv4 and IPv6 pointers up, those are special
for obvious reasons.

Acked-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org> # ieee802154
Acked-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/cfg80211.h
include/net/cfg802154.h
net/batman-adv/hard-interface.c
net/core/net-sysfs.c