[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0805160911400.22059@anakin>
Date: Fri, 16 May 2008 09:12:51 +0200 (CEST)
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Tony Breeds <tony@...eyournoodle.com>
cc: Randy Dunlap <randy.dunlap@...cle.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Jeff Garzik <jgarzik@...hat.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
Linux/m68k <linux-m68k@...r.kernel.org>
Subject: Re: linux-next: Tree for May 14
On Fri, 16 May 2008, Tony Breeds wrote:
> On Thu, May 15, 2008 at 09:17:15AM +0200, Geert Uytterhoeven wrote:
> > Technically, it could also happen on PPC (APUS), but all APUS support got
> > removed a few months ago.
> > So maybe CONFIG_ZORRO is more appropriate?
>
> Well as it turns out it can happen in a few other plcaes (the same error
> is visible on sh aswell:
> http://kisskb.ellerman.id.au/kisskb/buildresult/27769/ )
>
> Below is a new fix. Thoughts?.
Looks OK to me!
> --- a/drivers/net/lib8390.c
> +++ b/drivers/net/lib8390.c
> @@ -553,6 +553,9 @@ static void __ei_poll(struct net_device *dev)
> static void ei_tx_err(struct net_device *dev)
> {
> unsigned long e8390_base = dev->base_addr;
> + /* ei_local is used on some platforms via the EI_SHIFT macro */
> + struct ei_device *ei_local __maybe_unused =
> + (struct ei_device *) netdev_priv(dev);
^^^^^^^^^^^^^^^^^^^^
But please don't reintroduce the casts. netdev_priv() returns a void *.
> unsigned char txsr = ei_inb_p(e8390_base+EN0_TSR);
> unsigned char tx_was_aborted = txsr & (ENTSR_ABT+ENTSR_FU);
>
> @@ -815,6 +818,9 @@ static void ei_rx_overrun(struct net_device *dev)
> {
> unsigned long e8390_base = dev->base_addr;
> unsigned char was_txing, must_resend = 0;
> + /* ei_local is used on some platforms via the EI_SHIFT macro */
> + struct ei_device *ei_local __maybe_unused =
> + (struct ei_device *) netdev_priv(dev);
^^^^^^^^^^^^^^^^^^^^
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists