Re: [PATCH net-next] net: ifdefy the wireless pointers in struct net_device

From
Stefan Schmidt <stefan@datenfreihafen.org>
Date
2022-05-17 07:09:25
Also in
linux-wireless
Reply to
Jakub Kicinski, 2022-05-16
Hello.

On 16.05.22 23:56, Jakub Kicinski wrote:
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.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: johannes@sipsolutions.net
CC: alex.aring@gmail.com
CC: stefan@datenfreihafen.org
CC: <redacted>
CC: sw@simonwunderlich.de
CC: <redacted>
CC: sven@narfation.org
CC: <redacted>
CC: <redacted>
---
  include/linux/netdevice.h       | 8 ++++++--
  include/net/cfg80211.h          | 5 +----
  include/net/cfg802154.h         | 2 ++
  net/batman-adv/hard-interface.c | 2 ++
  net/wireless/core.c             | 6 ++++++
  5 files changed, 17 insertions(+), 6 deletions(-)
For the ieee802154 changes:

Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>

regards
Stefan Schmidt
Thread (14 messages) 14 messages, 7 authors, last reply 2022-05-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help