[xfrm6_mode_transport]: untracked dependency

From: Alexey Fomenko
Date: Thu Aug 25 2011 - 08:10:08 EST


Hi, all.

Looks like module xfrm6_mode_transport should depend on ipv6 module.
While running kernel with ipv6 compiled as a module, and not loaded,
it's impossible to just "modprobe xfrm6_mode_transport", it complains
about wrong address family which is not supported. After manual
inserting ("modprobe ipv6"), subject module can be normally loaded. Same
case with compiled-in kernel IPv6 support: subject module can be
normally loaded.

So the question : what is the proper way to fix this? Normally depmod
should take care of discovering exported and used symbols but modinfo
shows that xfrm6_mode_transport doesn't have a dependency inside. I
didn't find normal way (i.e. like macros MODULE_DEPEND or so) to mark a
dependency manually in module sources.

Best regards
Alexey Fomenko

--
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/