All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -queue] MIPS/net: fix au1000_eth.c build and warnings
@ 2010-02-15 19:43 Manuel Lauss
  2010-02-17 14:58 ` Ralf Baechle
  2010-02-17 15:03 ` Florian Fainelli
  0 siblings, 2 replies; 4+ messages in thread
From: Manuel Lauss @ 2010-02-15 19:43 UTC (permalink / raw)
  To: Linux-MIPS, Ralf B�chle; +Cc: Manuel Lauss

- buildfix: DECLARE_MAC_BUF was removed recently.
- remove various warnings spit out during build

Only compile-tested.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
---
Hi Ralf!  Please fold this into the patch titled
"NET: au1000-eth: convert to platform_driver model"
in mips-queue, thank you!

 drivers/net/au1000_eth.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c
index 1acf2c1..6e5a68e 100644
--- a/drivers/net/au1000_eth.c
+++ b/drivers/net/au1000_eth.c
@@ -397,11 +397,12 @@ static int mii_probe (struct net_device *dev)
 				/* find the first (lowest address) non-attached PHY on
 				 * the MAC0 MII bus */
 				for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) {
-					if (aup->mac_id == 1)
-						break;
 					struct phy_device *const tmp_phydev =
 							aup->mii_bus->phy_map[phy_addr];
 
+					if (aup->mac_id == 1)
+						break;
+
 					if (!tmp_phydev)
 						continue; /* no PHY here... */
 
@@ -650,7 +651,6 @@ static int au1000_init(struct net_device *dev)
 
 static inline void update_rx_stats(struct net_device *dev, u32 status)
 {
-	struct au1000_private *aup = netdev_priv(dev);
 	struct net_device_stats *ps = &dev->stats;
 
 	ps->rx_packets++;
@@ -908,7 +908,7 @@ static netdev_tx_t au1000_tx(struct sk_buff *skb, struct net_device *dev)
 	}
 
 	pDB = aup->tx_db_inuse[aup->tx_head];
-	skb_copy_from_linear_data(skb, pDB->vaddr, skb->len);
+	skb_copy_from_linear_data(skb, (void *)pDB->vaddr, skb->len);
 	if (skb->len < ETH_ZLEN) {
 		for (i=skb->len; i<ETH_ZLEN; i++) {
 			((char *)pDB->vaddr)[i] = 0;
@@ -1006,7 +1006,7 @@ static int __devinit au1000_probe(struct platform_device *pdev)
 	db_dest_t *pDB, *pDBfree;
 	int irq, i, err = 0;
 	struct resource *base, *macen;
-	DECLARE_MAC_BUF(ethaddr);
+	char ethaddr[6];
 
 	base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	if (!base) {
@@ -1207,8 +1207,8 @@ static int __devinit au1000_probe(struct platform_device *pdev)
 		goto err_out;
 	}
 
-	printk("%s: Au1xx0 Ethernet found at 0x%x, irq %d\n",
-					dev->name, base->start, irq);
+	printk("%s: Au1xx0 Ethernet found at 0x%lx, irq %d\n",
+			dev->name, (unsigned long)base->start, irq);
 	if (version_printed++ == 0)
 		printk("%s version %s %s\n", DRV_NAME, DRV_VERSION, DRV_AUTHOR);
 
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH -queue] MIPS/net: fix au1000_eth.c build and warnings
  2010-02-15 19:43 [PATCH -queue] MIPS/net: fix au1000_eth.c build and warnings Manuel Lauss
@ 2010-02-17 14:58 ` Ralf Baechle
  2010-02-17 15:03 ` Florian Fainelli
  1 sibling, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2010-02-17 14:58 UTC (permalink / raw)
  To: Manuel Lauss; +Cc: Linux-MIPS, Manuel Lauss

On Mon, Feb 15, 2010 at 08:43:37PM +0100, Manuel Lauss wrote:

> - buildfix: DECLARE_MAC_BUF was removed recently.
> - remove various warnings spit out during build
> 
> Only compile-tested.
> 
> Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
> ---
> Hi Ralf!  Please fold this into the patch titled
> "NET: au1000-eth: convert to platform_driver model"
> in mips-queue, thank you!

Done - but as this is a net patch it should have been cc'ed to netdev /
DaveM as well ...

  Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -queue] MIPS/net: fix au1000_eth.c build and warnings
  2010-02-15 19:43 [PATCH -queue] MIPS/net: fix au1000_eth.c build and warnings Manuel Lauss
  2010-02-17 14:58 ` Ralf Baechle
@ 2010-02-17 15:03 ` Florian Fainelli
  2010-02-17 16:35   ` Ralf Baechle
  1 sibling, 1 reply; 4+ messages in thread
From: Florian Fainelli @ 2010-02-17 15:03 UTC (permalink / raw)
  To: Manuel Lauss; +Cc: Linux-MIPS, Ralf B�chle, Manuel Lauss

Hi Manuel,

On Monday 15 February 2010 20:43:37 Manuel Lauss wrote:
> - buildfix: DECLARE_MAC_BUF was removed recently.
> - remove various warnings spit out during build
> 
> Only compile-tested.
> 
> Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
> ---
> Hi Ralf!  Please fold this into the patch titled
> "NET: au1000-eth: convert to platform_driver model"
> in mips-queue, thank you!
> 
>  drivers/net/au1000_eth.c |   14 +++++++-------
>  1 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c
> index 1acf2c1..6e5a68e 100644
> --- a/drivers/net/au1000_eth.c
> +++ b/drivers/net/au1000_eth.c
> @@ -397,11 +397,12 @@ static int mii_probe (struct net_device *dev)
>  				/* find the first (lowest address) non-attached PHY on
>  				 * the MAC0 MII bus */
>  				for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) {
> -					if (aup->mac_id == 1)
> -						break;
>  					struct phy_device *const tmp_phydev =
>  							aup->mii_bus->phy_map[phy_addr];
> 
> +					if (aup->mac_id == 1)
> +						break;
> +
>  					if (!tmp_phydev)
>  						continue; /* no PHY here... */
> 
> @@ -650,7 +651,6 @@ static int au1000_init(struct net_device *dev)
> 
>  static inline void update_rx_stats(struct net_device *dev, u32 status)
>  {
> -	struct au1000_private *aup = netdev_priv(dev);
>  	struct net_device_stats *ps = &dev->stats;
> 
>  	ps->rx_packets++;
> @@ -908,7 +908,7 @@ static netdev_tx_t au1000_tx(struct sk_buff *skb,
>  struct net_device *dev) }
> 
>  	pDB = aup->tx_db_inuse[aup->tx_head];
> -	skb_copy_from_linear_data(skb, pDB->vaddr, skb->len);
> +	skb_copy_from_linear_data(skb, (void *)pDB->vaddr, skb->len);
>  	if (skb->len < ETH_ZLEN) {
>  		for (i=skb->len; i<ETH_ZLEN; i++) {
>  			((char *)pDB->vaddr)[i] = 0;
> @@ -1006,7 +1006,7 @@ static int __devinit au1000_probe(struct
>  platform_device *pdev) db_dest_t *pDB, *pDBfree;
>  	int irq, i, err = 0;
>  	struct resource *base, *macen;
> -	DECLARE_MAC_BUF(ethaddr);
> +	char ethaddr[6];

That hunk is already in net-next-2.6.
--
Florian
-- 
Regards, Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -queue] MIPS/net: fix au1000_eth.c build and warnings
  2010-02-17 15:03 ` Florian Fainelli
@ 2010-02-17 16:35   ` Ralf Baechle
  0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2010-02-17 16:35 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: Manuel Lauss, Linux-MIPS, Manuel Lauss

On Wed, Feb 17, 2010 at 04:03:44PM +0100, Florian Fainelli wrote:

> > @@ -1006,7 +1006,7 @@ static int __devinit au1000_probe(struct
> >  platform_device *pdev) db_dest_t *pDB, *pDBfree;
> >  	int irq, i, err = 0;
> >  	struct resource *base, *macen;
> > -	DECLARE_MAC_BUF(ethaddr);
> > +	char ethaddr[6];
> 
> That hunk is already in net-next-2.6.

Fortunately this doesn't cause a merge conflict.

  Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-17 16:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-15 19:43 [PATCH -queue] MIPS/net: fix au1000_eth.c build and warnings Manuel Lauss
2010-02-17 14:58 ` Ralf Baechle
2010-02-17 15:03 ` Florian Fainelli
2010-02-17 16:35   ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.