Skip to contentSkip to conversation

net: dsa: mv88e6xxx: Move forward declaration to where it is needed

PATCH Applied Andrew Lunn 2 participants 2 messages Feb 8, 2017 – Feb 9, 2017

Subsystems (4)
lore
Share & tools
lore

Andrew Lunn

author maintainer
#0 lore raw

PATCH v2 1/1 net: dsa: mv88e6xxx: Move forward declaration to where it is needed

Move it out from the middle for the #defines to just before it is needed.

---
v2:

Rebased onto latest net-next.

drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h +2 -2
index 8a21800374f3..d6b335cd8c09 100644
@@ -662,8 +662,6 @@ enum mv88e6xxx_cap {
 	 MV88E6XXX_FLAGS_PVT |		\
 	 MV88E6XXX_FLAGS_SERDES)
 
-struct mv88e6xxx_ops;
-
 #define MV88E6XXX_FLAGS_FAMILY_6390	\
 	(MV88E6XXX_FLAG_EEE |		\
 	 MV88E6XXX_FLAG_GLOBAL2 |	\
@@ -673,6 +671,8 @@ struct mv88e6xxx_ops;
 	 MV88E6XXX_FLAGS_MULTI_CHIP |	\
 	 MV88E6XXX_FLAGS_PVT)
 
+struct mv88e6xxx_ops;
+
 struct mv88e6xxx_info {
 	enum mv88e6xxx_family family;
 	u16 prod_num;
Signature · 1 line
2.11.0