[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87y3ofi0oi.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me>
Date: Fri, 13 Oct 2017 10:26:21 -0400
From: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
To: David Laight <David.Laight@...LAB.COM>,
'Florian Fainelli' <f.fainelli@...il.com>,
"netdev\@vger.kernel.org" <netdev@...r.kernel.org>
Cc: "linux-kernel\@vger.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel\@savoirfairelinux.com" <kernel@...oirfairelinux.com>,
"David S. Miller" <davem@...emloft.net>,
Andrew Lunn <andrew@...n.ch>
Subject: RE: [PATCH net-next 5/5] net: dsa: split dsa_port's netdev member
Hi David,
David Laight <David.Laight@...LAB.COM> writes:
> 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.
There are issues with older GCC versions, see the commit 42275bd8fcb3
("switchdev: don't use anonymous union on switchdev attr/obj structs")
That's why I kept it in the v2 I sent.
Thanks,
Vivien
Powered by blists - more mailing lists