* [PATCH 1/2] net: of_mdio: use int type for address variable
@ 2014-06-02 11:32 Daniel Mack
2014-06-02 11:32 ` [PATCH 2/2] of: of_mdio: export symbol of_mdiobus_link_phydev Daniel Mack
2014-06-02 17:43 ` [PATCH 1/2] net: of_mdio: use int type for address variable David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Daniel Mack @ 2014-06-02 11:32 UTC (permalink / raw)
To: linux-next, davem; +Cc: netdev, sfr, Daniel Mack
Use int rather than u32 to fix the following warning:
drivers/of/of_mdio.c:147 of_mdiobus_register() warn: unsigned 'addr' is
never less than zero.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Fixes: 8f8382888cba ("net: of_mdio: factor out code to parse a phy's 'reg' property")
---
David,
this patch and the next one fix warnings and build breakage reported
by Stephen and the build test system. They were both introduced by
my patches that you applied lately.
Thanks,
Daniel
drivers/of/of_mdio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c
index c719601..cb36018 100644
--- a/drivers/of/of_mdio.c
+++ b/drivers/of/of_mdio.c
@@ -147,9 +147,8 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
{
struct device_node *child;
const __be32 *paddr;
- u32 addr;
bool scanphys = false;
- int rc, i;
+ int addr, rc, i;
/* Mask out all PHYs from auto probing. Instead the PHYs listed in
* the device tree are populated after the bus has been registered */
--
1.9.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] of: of_mdio: export symbol of_mdiobus_link_phydev
2014-06-02 11:32 [PATCH 1/2] net: of_mdio: use int type for address variable Daniel Mack
@ 2014-06-02 11:32 ` Daniel Mack
2014-06-02 17:43 ` David Miller
2014-06-02 17:43 ` [PATCH 1/2] net: of_mdio: use int type for address variable David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Mack @ 2014-06-02 11:32 UTC (permalink / raw)
To: linux-next, davem; +Cc: netdev, sfr, Daniel Mack
Make of_mdiobus_link_phydev externally available.
This fixes CONFIG_OF_MDIO=m.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 86f6cf41272 ("net: of_mdio: add of_mdiobus_link_phydev()")
---
drivers/of/of_mdio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c
index cb36018..b64c258 100644
--- a/drivers/of/of_mdio.c
+++ b/drivers/of/of_mdio.c
@@ -240,6 +240,7 @@ void of_mdiobus_link_phydev(struct mii_bus *mdio,
}
}
}
+EXPORT_SYMBOL(of_mdiobus_link_phydev);
/* Helper function for of_phy_find_device */
static int of_phy_match(struct device *dev, void *phy_np)
--
1.9.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] net: of_mdio: use int type for address variable
2014-06-02 11:32 [PATCH 1/2] net: of_mdio: use int type for address variable Daniel Mack
2014-06-02 11:32 ` [PATCH 2/2] of: of_mdio: export symbol of_mdiobus_link_phydev Daniel Mack
@ 2014-06-02 17:43 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2014-06-02 17:43 UTC (permalink / raw)
To: zonque; +Cc: linux-next, netdev, sfr
From: Daniel Mack <zonque@gmail.com>
Date: Mon, 2 Jun 2014 13:32:45 +0200
> Use int rather than u32 to fix the following warning:
>
> drivers/of/of_mdio.c:147 of_mdiobus_register() warn: unsigned 'addr' is
> never less than zero.
>
> Signed-off-by: Daniel Mack <zonque@gmail.com>
> Fixes: 8f8382888cba ("net: of_mdio: factor out code to parse a phy's 'reg' property")
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-02 17:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02 11:32 [PATCH 1/2] net: of_mdio: use int type for address variable Daniel Mack
2014-06-02 11:32 ` [PATCH 2/2] of: of_mdio: export symbol of_mdiobus_link_phydev Daniel Mack
2014-06-02 17:43 ` David Miller
2014-06-02 17:43 ` [PATCH 1/2] net: of_mdio: use int type for address variable David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).