* [patch] 2.4.11-pre2 for EXPORT_SYMBOL_GPL()
@ 2001-10-03 23:28 Keith Owens
0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2001-10-03 23:28 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds
AC's original EXPORT_SYMBOL_GPL() was incorrect, it has been fixed in
2.4.10-ac but not in 2.4.11-pre. Patch against 2.4.11-pre2.
Index: 11-pre2.1/include/linux/module.h
--- 11-pre2.1/include/linux/module.h Tue, 02 Oct 2001 11:04:33 +1000 kaos (linux-2.4/c/b/46_module.h 1.1.1.1.2.4 644)
+++ 10.30/include/linux/module.h Tue, 02 Oct 2001 11:25:49 +1000 kaos (linux-2.4/c/b/46_module.h 1.1.1.1.1.6 644)
@@ -366,10 +366,10 @@ __attribute__((section("__ksymtab"))) =
#define __EXPORT_SYMBOL_GPL(sym, str) \
const char __kstrtab_##sym[] \
-__attribute__((section(".kstrtab"))) = str; \
-const struct module_symbol __ksymtab_GPLONLY_##sym \
+__attribute__((section(".kstrtab"))) = "GPLONLY_" str; \
+const struct module_symbol __ksymtab_##sym \
__attribute__((section("__ksymtab"))) = \
-{ (unsigned long)&sym, __kstrtab_GPLONLY_##sym }
+{ (unsigned long)&sym, __kstrtab_##sym }
#if defined(MODVERSIONS) || !defined(CONFIG_MODVERSIONS)
#define EXPORT_SYMBOL(var) __EXPORT_SYMBOL(var, __MODULE_STRING(var))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-03 23:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-03 23:28 [patch] 2.4.11-pre2 for EXPORT_SYMBOL_GPL() Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).