Subject: Re: [2.6 patch] VIA_VELOCITY must depend on INET

From: Alan Cox <[email-masked]>
Date: Wed, 20 Jul 2005 12:26:26 +0100

On Maw, 2005-07-19 at 15:55 +0200, Adrian Bunk wrote:
> VIA_VELOCITY=y and INET=n results in the following compile error:
> 
> <--  snip  -->
> 
> ...
>   LD      .tmp_vmlinux1
> drivers/built-in.o: In function `velocity_register_notifier':
> via-velocity.c:(.text+0x3462c6): undefined reference to `register_inetaddr_notifier'
> drivers/built-in.o: In function `velocity_unregister_notifier':
> via-velocity.c:(.text+0x3462d6): undefined reference to `unregister_inetaddr_notifier'
> make: *** [.tmp_vmlinux1] Error 1

Alternatively you could drop those functions when CONFIG_INET is n as
they are only used for wake on arp