aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/of_mdio.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2019-12-23 11:03:21 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-26 15:17:26 -0800
commit7df2281a174bd0fdbb2211a26914e5440740fcde (patch)
treec33f7ab80b8bed06e47825ab718032989020491d /include/linux/of_mdio.h
parentnet: phy: aquantia: add suspend / resume ops for AQR105 (diff)
downloadwireguard-linux-7df2281a174bd0fdbb2211a26914e5440740fcde.tar.xz
wireguard-linux-7df2281a174bd0fdbb2211a26914e5440740fcde.zip
of: mdio: Add missing inline to of_mdiobus_child_is_phy() dummy
If CONFIG_OF_MDIO=n: drivers/net/phy/mdio_bus.c:23: include/linux/of_mdio.h:58:13: warning: ‘of_mdiobus_child_is_phy’ defined but not used [-Wunused-function] static bool of_mdiobus_child_is_phy(struct device_node *child) ^~~~~~~~~~~~~~~~~~~~~~~ Fix this by adding the missing "inline" keyword. Fixes: 0aa4d016c043d16a ("of: mdio: export of_mdiobus_child_is_phy") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Borislav Petkov <bp@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/of_mdio.h')
-rw-r--r--include/linux/of_mdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of_mdio.h b/include/linux/of_mdio.h
index 79bc82e30c02..491a2b7e77c1 100644
--- a/include/linux/of_mdio.h
+++ b/include/linux/of_mdio.h
@@ -55,7 +55,7 @@ static inline int of_mdio_parse_addr(struct device *dev,
}
#else /* CONFIG_OF_MDIO */
-static bool of_mdiobus_child_is_phy(struct device_node *child)
+static inline bool of_mdiobus_child_is_phy(struct device_node *child)
{
return false;
}