Skip to contentSkip to conversation

drivers/w1/w1_int.c compile error with NET=n

DISCUSSION Adrian Bunk 2 participants 2 messages Jul 19, 2005

lore
Share & tools
lore
#0 lore raw

I'm seeing the following compile error in 2.6.13-rc3-mm1 (but it doesn't seem to be specific to -mm) with CONFIG_NET=n:

<-- snip -->

...
LD .tmp_vmlinux1
drivers/built-in.o: In function `w1_alloc_dev':
w1_int.c:(.text+0x65d81f): undefined reference to netlink_kernel_create' w1_int.c:(.text+0x65d881): undefined reference to sock_release' drivers/built-in.o: In function `w1_free_dev':
w1_int.c:(.text+0x65d8e9): undefined reference to `sock_release'
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#1 lore raw
Quoted 14 lines · Adrian Bunk

I'm seeing the following compile error in 2.6.13-rc3-mm1 (but it doesn't seem to be specific to -mm) with CONFIG_NET=n:

<-- snip -->

...
LD .tmp_vmlinux1
drivers/built-in.o: In function `w1_alloc_dev':
w1_int.c:(.text+0x65d81f): undefined reference to netlink_kernel_create' w1_int.c:(.text+0x65d881): undefined reference to sock_release' drivers/built-in.o: In function `w1_free_dev':
w1_int.c:(.text+0x65d8e9): undefined reference to `sock_release'
make: *** [.tmp_vmlinux1] Error 1

Quoted 2 lines

<-- snip -->

Something changed...
Those functions were exported before even with NET disabled. There is a NETLINK_DISABLE config option which guards message sending, now it should guard socket creation too.

Thanks, Adrian, I will create a patch for it.

Quoted 11 lines

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
Signature · 1 line
	Evgeniy Polyakov