switchdev: don't use anonymous union on switchdev attr/obj structs
authorScott Feldman <sfeldma@gmail.com>
Wed, 13 May 2015 18:16:50 +0000 (11:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2015 18:20:59 +0000 (14:20 -0400)
Older gcc versions (e.g.  gcc version 4.4.6) don't like anonymous unions
which was causing build issues on the newly added switchdev attr/obj
structs.  Fix this by using named union on structs.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found