Skip to contentSkip to conversation

net: ugg_geth: Fix build error in -next

PATCH In review Guenter Roeck 2 participants 5 messages Aug 10, 2014 – Aug 11, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ugg_geth: Fix build error in -next

powerpc:mpc83xx_defconfig and other builds fail with

drivers/net/ethernet/freescale/ucc_geth.c: In function 'ucc_geth_remove':
drivers/net/ethernet/freescale/ucc_geth.c:3927:19: error:
'struct ucc_geth_private' has no member named 'info'

  of_node_put(ugeth->info->tbi_node);
                     ^

drivers/net/ethernet/freescale/ucc_geth.c:3928:19: error:
'struct ucc_geth_private' has no member named 'info'
of_node_put(ugeth->info->phy_node);
^

Introduced by commit "net: ucc_geth: drop acquired references in probe error path and remove".

From the context, it appears that the variable is named ug_info.

Cc Uwe Kleine-König <[email protected]>

---
Only seen in -next.

 drivers/net/ethernet/freescale/ucc_geth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/freescale/ucc_geth.c +2 -2
index d6b64e3..3cf0478 100644
@@ -3924,8 +3924,8 @@ static int ucc_geth_remove(struct platform_device* ofdev)
 	unregister_netdev(dev);
 	free_netdev(dev);
 	ucc_geth_memclean(ugeth);
-	of_node_put(ugeth->info->tbi_node);
-	of_node_put(ugeth->info->phy_node);
+	of_node_put(ugeth->ug_info->tbi_node);
+	of_node_put(ugeth->ug_info->phy_node);
 
 	return 0;
 }
Signature · 1 line
1.9.1
#1 lore raw

Grumble. Headline should be s/ugg/ucc, obviously.

Guenter

Quoted 41 lines · Guenter Roeck

powerpc:mpc83xx_defconfig and other builds fail with

drivers/net/ethernet/freescale/ucc_geth.c: In function 'ucc_geth_remove':
drivers/net/ethernet/freescale/ucc_geth.c:3927:19: error:
'struct ucc_geth_private' has no member named 'info'

   of_node_put(ugeth->info->tbi_node);
                      ^
drivers/net/ethernet/freescale/ucc_geth.c:3928:19: error:
	     'struct ucc_geth_private' has no member named 'info'
   of_node_put(ugeth->info->phy_node);
   		     ^

Introduced by commit "net: ucc_geth: drop acquired references in probe error path and remove".

Quoted 1 line

From the context, it appears that the variable is named ug_info.

Cc Uwe Kleine-König <[email protected]>

---
Only seen in -next.

  drivers/net/ethernet/freescale/ucc_geth.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/freescale/ucc_geth.c +2 -2
index d6b64e3..3cf0478 100644
@@ -3924,8 +3924,8 @@ static int ucc_geth_remove(struct platform_device* ofdev)
  	unregister_netdev(dev);
  	free_netdev(dev);
  	ucc_geth_memclean(ugeth);
-	of_node_put(ugeth->info->tbi_node);
-	of_node_put(ugeth->info->phy_node);
+	of_node_put(ugeth->ug_info->tbi_node);
+	of_node_put(ugeth->ug_info->phy_node);
 
  	return 0;
  }
Acked-by on v1 1/1
#2 lore raw
In reply to Guenter Roeck

Hello Guenter,

Quoted 15 lines · Guenter Roeck

powerpc:mpc83xx_defconfig and other builds fail with

drivers/net/ethernet/freescale/ucc_geth.c: In function 'ucc_geth_remove':
drivers/net/ethernet/freescale/ucc_geth.c:3927:19: error:
'struct ucc_geth_private' has no member named 'info'

  of_node_put(ugeth->info->tbi_node);
                     ^

drivers/net/ethernet/freescale/ucc_geth.c:3928:19: error:
'struct ucc_geth_private' has no member named 'info'
of_node_put(ugeth->info->phy_node);
^

Introduced by commit "net: ucc_geth: drop acquired references in probe error path and remove".

Quoted 6 lines

From the context, it appears that the variable is named ug_info.

Cc Uwe Kleine-König <[email protected]>

---
Only seen in -next.

My patch was only sent just now, but it has the subject right:

	http://mid.gmane.org/[email protected]

Another upside is that it contains a Fixes: header.

Other than that my patch is the same. In case davem picks up yours:

Best regards and thanks
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#3 lore raw
Quoted 18 lines · Uwe Kleine-König

Hello Guenter,

Quoted 15 lines · Guenter Roeck

powerpc:mpc83xx_defconfig and other builds fail with

drivers/net/ethernet/freescale/ucc_geth.c: In function 'ucc_geth_remove':
drivers/net/ethernet/freescale/ucc_geth.c:3927:19: error:
'struct ucc_geth_private' has no member named 'info'

   of_node_put(ugeth->info->tbi_node);
                      ^
drivers/net/ethernet/freescale/ucc_geth.c:3928:19: error:
	     'struct ucc_geth_private' has no member named 'info'
   of_node_put(ugeth->info->phy_node);
   		     ^

Introduced by commit "net: ucc_geth: drop acquired references in probe error path and remove".

Quoted 8 lines
Quoted 6 lines

From the context, it appears that the variable is named ug_info.

Cc Uwe Kleine-König <[email protected]>

---
Only seen in -next.

My patch was only sent just now, but it has the subject right:

Excellent.

Quoted 2 lines
	http://mid.gmane.org/[email protected]

The link doesn't seem to work for some reason.

Quoted 2 lines

Another upside is that it contains a Fixes: header.

Even better. I need to start using that.

Quoted 4 lines

Other than that my patch is the same. In case davem picks up yours:

I don't need the glory ;-). Dave, please pick Uwe's patch.

Thanks,
Guenter

#4 lore raw

Hello Guenter,

Quoted 23 lines · Guenter Roeck
Quoted 22 lines · Uwe Kleine-König
Quoted 21 lines · Guenter Roeck

powerpc:mpc83xx_defconfig and other builds fail with

drivers/net/ethernet/freescale/ucc_geth.c: In function 'ucc_geth_remove':
drivers/net/ethernet/freescale/ucc_geth.c:3927:19: error:
'struct ucc_geth_private' has no member named 'info'

  of_node_put(ugeth->info->tbi_node);
                     ^

drivers/net/ethernet/freescale/ucc_geth.c:3928:19: error:
'struct ucc_geth_private' has no member named 'info'
of_node_put(ugeth->info->phy_node);
^

Introduced by commit "net: ucc_geth: drop acquired references in probe error path and remove".

From the context, it appears that the variable is named ug_info.

Cc Uwe Kleine-König <[email protected]>

---
Only seen in -next.

Quoted 7 lines
Quoted 2 lines

My patch was only sent just now, but it has the subject right:

Excellent.

Quoted 2 lines
	http://mid.gmane.org/[email protected]

The link doesn't seem to work for some reason.

It didn't work for me when I sent the mail either. I thought gmane will have indexed the mail in a few minutes though. Gmane is broken somehow, when I follow the Subject link of
http://article.gmane.org/gmane.linux.network/326013 I also get a No such article page?! :-(

http://patchwork.ozlabs.org/patch/378854/ is a link that works for me.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |