Commit 7df2281a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by David S. Miller

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: 0aa4d016 ("of: mdio: export of_mdiobus_child_is_phy")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Acked-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c93fb45
...@@ -55,7 +55,7 @@ static inline int of_mdio_parse_addr(struct device *dev, ...@@ -55,7 +55,7 @@ static inline int of_mdio_parse_addr(struct device *dev,
} }
#else /* CONFIG_OF_MDIO */ #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; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment