086f3a1 overrode module_init to make it depend on compat, but the
overriding module_init has return type 'void', so strange things would
happen when the module loading code see that init_module() returns
positive values. This patch makes it return the value returned by
the overriden module_init.
Signed-off-by: Nicolas Cavallari <cavallar@lri.fr>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
#undef module_init
#define module_init(initfn) \
- static void __init __init_compat(void) \
+ static int __init __init_compat(void) \
{ \
compat_dependency_symbol(); \
- initfn(); \
+ return initfn(); \
} \
int init_module(void) __attribute__((alias("__init_compat")));