libkmod: move function to the only file using it
authorMike Frysinger <vapier@gentoo.org>
Tue, 15 May 2012 22:29:44 +0000 (19:29 -0300)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 15 May 2012 22:30:05 +0000 (19:30 -0300)
commitd30319e4335bcf76101e28d81c9a7c2ec9187cb7
tree1c15a909468046ab1d90738b0a644f51eb12cf8a
parentc88aec70d1b74ea71cd3ec538b3f43ad8c6783b3
libkmod: move function to the only file using it

If we don't have --gc-sections support, linking kmod fails:
libkmod/.libs/libkmod-util.a(libkmod-util.o): In function 'underscores':
libkmod/libkmod-util.c:117: undefined reference to 'kmod_log'

This is because libkmod-util.la uses kmod_log(), that is in libkmod.la.
Move the function so we don't have a dependency loop while building the
libraries and it works with compilers with no support for --gc-sections.
libkmod/libkmod-config.c
libkmod/libkmod-util.c
libkmod/libkmod-util.h