Skip to contentSkip to conversation

CKRM_TYPE_SOCKETCLASS must depend on INET

PATCH New Adrian Bunk 1 participant 1 message Jul 17, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CKRM_TYPE_SOCKETCLASS must depend on INET

CKRM_TYPE_SOCKETCLASS=y, NET=n, INET=n results in the following link error:

<-- snip -->

...
LD .tmp_vmlinux1
kernel/built-in.o: In function `cb_sockclass_listen_stop':
ckrm_sockc.c:(.text+0x27e2b): undefined reference to sk_free' kernel/built-in.o: In function ckrm_sock_forced_reclassify_ns':
ckrm_sockc.c:(.text+0x280d5): undefined reference to `tcp_v4_lookup_listener'
ckrm_sockc.c:(.text+0x280e4): undefined reference to lock_sock' ckrm_sockc.c:(.text+0x28134): undefined reference to release_sock' ckrm_sockc.c:(.text+0x28154): undefined reference to sk_free' kernel/built-in.o: In function ckrm_sock_reclassify_class':
ckrm_sockc.c:(.text+0x2851e): undefined reference to lock_sock' ckrm_sockc.c:(.text+0x2853b): undefined reference to release_sock'
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->

init/Kconfig renamed from init/Kconfig.old +1 -1
@@ -184,7 +184,7 @@
 
 config CKRM_TYPE_SOCKETCLASS
 	bool "Class Manager for socket groups"
-	depends on CKRM && RCFS_FS
+	depends on INET && CKRM && RCFS_FS
 	default y
 	help
 	  SOCKET provides the extensions for CKRM to track per socket