[PATCH] net, wd.c: fix undefined reference to `NS8390p_init'

From: Ingo Molnar
Date: Mon Aug 11 2008 - 05:11:55 EST



* Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> On Thu, 7 Aug 2008 09:20:07 +0200 (CEST)
> Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
>
> > On Wed, 6 Aug 2008, Randy Dunlap wrote:
> > > One randconfig ends with:
> > >
> > > drivers/built-in.o: In function `wd_probe1':
> > > wd.c:(.init.text+0x6179): undefined reference to `NS8390p_init'
> > > make[1]: *** [.tmp_vmlinux1] Error 1
> >
> > drivers/net/Makefile has:
> >
> > obj-$(CONFIG_WD80x3) += wd.o 8390.o
> >
> > So either wd_probe1() should call NS8390_init(), or obj-$(CONFIG_WD80x3)
> > should link with 8390p.o. Don't know which is the appropriate change
> > here (my gut feeling says the latter).
>
> Safest is the latter. The shared memory interface on the wd is full
> speed 8 or 16bit (depending on card/jumpers) but I'm not clear about
> the NIC. Most of the performance hit is on the packet transfer which
> is private methods on this device so using 8390p won't make a big
> difference on this board anyway.

Alan, Jeff, i triggered this too with latest -git, please pick up the
fix below if you dont have it already.

Ingo

------------------>