RE: [PATCH net-next 5/5] net: dsa: split dsa_port's netdev member

From: David Laight
Date: Fri Oct 13 2017 - 10:02:53 EST


From: Florian Fainelli
> Sent: 13 October 2017 00:05
...
> How about using:
>
> union {
> struct net_device *master;
> struct net_device *slave;
> } netdev;
...

You can remove the 'netdev' all the compilers support unnamed unions.

David