OSDN Git Service

switchdev: don't use anonymous union on switchdev attr/obj structs
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / include / net / switchdev.h
index 9f9a7cc..ea5b1c2 100644 (file)
@@ -38,7 +38,7 @@ struct switchdev_attr {
                struct netdev_phys_item_id ppid;        /* PORT_PARENT_ID */
                u8 stp_state;                           /* PORT_STP_STATE */
                unsigned long brport_flags;             /* PORT_BRIDGE_FLAGS */
-       };
+       } u;
 };
 
 struct fib_info;
@@ -67,7 +67,7 @@ struct switchdev_obj {
                        u32 nlflags;
                        u32 tb_id;
                } ipv4_fib;
-       };
+       } u;
 };
 
 /**