Re: [PATCH] Dallas's 1-wire bus compile error (again)

From: Evgeniy Polyakov
Date: Thu Oct 13 2005 - 13:34:28 EST


On Thu, Oct 13, 2005 at 08:23:59PM +0200, Christian (evil@xxxxxxxxxx) wrote:
> hi,
>
> playing around with "make randconfig" (don't ask :)), i noticed the
> driver for the "Dallas's 1-wire bus" does not compile when CONFIG_NET is
> disabled.
>
> this was discussed earlier in
>
> http://www.ussg.iu.edu/hypermail/linux/kernel/0408.1/1764.html
>
> but the discussion ended up in arguing about using "depends" over
> "select" and the actual fix was forgotten i think.

Hmm... Could you please provide error log.
Networking is only used for netlink notifications which are disabled
if CONFIG_NET is not set, you can find empty declarations in
w1_netlink.c

drivers/w1/Makefile has following for that case:
ifneq ($(CONFIG_NET), y)
EXTRA_CFLAGS += -DNETLINK_DISABLED
endif


> Signed-off-by: Christian Kujau <evil@xxxxxxxxxx>
>
> thanks,
> Christian.
> --
> BOFH excuse #446:
>
> Mailer-daemon is busy burning your message in hell.

> --- linux-2.6/drivers/w1/Kconfig.orig 2005-10-13 20:09:44.813986698 +0200
> +++ linux-2.6/drivers/w1/Kconfig 2005-10-13 20:10:21.613460153 +0200
> @@ -2,6 +2,7 @@ menu "Dallas's 1-wire bus"
>
> config W1
> tristate "Dallas's 1-wire support"
> + depends on NET
> ---help---
> Dallas's 1-wire bus is usefull to connect slow 1-pin devices
> such as iButtons and thermal sensors.


--
Evgeniy Polyakov
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/