[PATCH] libkmod: make sure to export kmod_log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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 kmod_log is missing the export define, even though it's
already listed in the exported symbol list.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 libkmod/libkmod.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c
index 36ca629..74fd9ef 100644
--- a/libkmod/libkmod.c
+++ b/libkmod/libkmod.c
@@ -85,9 +85,9 @@ struct kmod_ctx {
 	unsigned long long indexes_stamp[_KMOD_INDEX_MODULES_SIZE];
 };
 
-void kmod_log(const struct kmod_ctx *ctx,
-		int priority, const char *file, int line, const char *fn,
-		const char *format, ...)
+KMOD_EXPORT void kmod_log(const struct kmod_ctx *ctx,
+			  int priority, const char *file, int line,
+			  const char *fn, const char *format, ...)
 {
 	va_list args;
 
-- 
1.7.8.5

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Home]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Video Projectors]     [PDAs]     [Free Online Dating]     [Hacking TiVo]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]     [16.7MP]

Add to Google Powered by Linux