]> git.baikalelectronics.ru Git - kernel.git/commit
of: mdio: Add missing inline to of_mdiobus_child_is_phy() dummy
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 23 Dec 2019 10:03:21 +0000 (11:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 23:17:26 +0000 (15:17 -0800)
commitfadad72bc75c8f105e1569c94a7f413e559b2dda
treec33f7ab80b8bed06e47825ab718032989020491d
parent750349ee6ce01365d297050cfa927bd60d8aeda8
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: 8bd7e465f9d4d3b5 ("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>
include/linux/of_mdio.h