Thread (49 messages) flat view 49 messages, 7 authors, 2020-06-24
STALE2264d

[PATCH 04/15] net: mdio: add a forward declaration for reset_control to mdio.h

From: Bartosz Golaszewski <hidden>
Date: 2020-06-22 09:41:38
Also in: linux-devicetree, lkml
Subsystem: ethernet phy library, the rest · Maintainers: Andrew Lunn, Heiner Kallweit, Linus Torvalds

From: Bartosz Golaszewski <redacted>

This header refers to struct reset_control but doesn't include any reset
header. The structure definition is probably somehow indirectly pulled in
since no warnings are reported but for the sake of correctness add the
forward declaration for struct reset_control.

Signed-off-by: Bartosz Golaszewski <redacted>
---
 include/linux/mdio.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/include/linux/mdio.h b/include/linux/mdio.h
index 36d2e0673d03..9ac5e7ff6156 100644
--- a/include/linux/mdio.h
+++ b/include/linux/mdio.h
@@ -17,6 +17,7 @@
 #define MII_REGADDR_C45_MASK	GENMASK(15, 0)
 
 struct gpio_desc;
+struct reset_control;
 struct mii_bus;
 
 /* Multiple levels of nesting are possible. However typically this is
-- 
2.26.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help