Skip to contentSkip to conversation

2.4.11-pre2 for EXPORT_SYMBOL_GPL()

PATCH New Keith Owens 1 participant 1 message Oct 3, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.11-pre2 for EXPORT_SYMBOL_GPL()

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

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) renamed from 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) +3 -3
@@ -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))