diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-05-13 14:16:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-13 14:20:59 -0400 |
commit | 42275bd8fcb351f951781d8882f359d25976824b (patch) | |
tree | 9689357f34d19a10544b03047df26b2031364664 /include/net/switchdev.h | |
parent | 1f7bd29bc0559aedae857639ca391c815e47f1d9 (diff) |
switchdev: don't use anonymous union on switchdev attr/obj structs
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>
Diffstat (limited to 'include/net/switchdev.h')
-rw-r--r-- | include/net/switchdev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h index 9f9a7cc573c3..ea5b1c230d3d 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h | |||
@@ -38,7 +38,7 @@ struct switchdev_attr { | |||
38 | struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */ | 38 | struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */ |
39 | u8 stp_state; /* PORT_STP_STATE */ | 39 | u8 stp_state; /* PORT_STP_STATE */ |
40 | unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */ | 40 | unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */ |
41 | }; | 41 | } u; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | struct fib_info; | 44 | struct fib_info; |
@@ -67,7 +67,7 @@ struct switchdev_obj { | |||
67 | u32 nlflags; | 67 | u32 nlflags; |
68 | u32 tb_id; | 68 | u32 tb_id; |
69 | } ipv4_fib; | 69 | } ipv4_fib; |
70 | }; | 70 | } u; |
71 | }; | 71 | }; |
72 | 72 | ||
73 | /** | 73 | /** |