#define symbol_put_addr(p) do { } while (0)
#endif /* CONFIG_MODULE_UNLOAD */
+int ref_module(struct module *a, struct module *b);
/* This is a #define so the string doesn't get put in every .o file */
#define module_name(mod) \
}
/* Module a uses b: caller needs module_mutex() */
-static int ref_module(struct module *a, struct module *b)
+int ref_module(struct module *a, struct module *b)
{
int err;
}
return 0;
}
+EXPORT_SYMBOL_GPL(ref_module);
/* Clear the unload stuff of the module. */
static void module_unload_free(struct module *mod)
{
}
-static int ref_module(struct module *a, struct module *b)
+int ref_module(struct module *a, struct module *b)
{
return strong_try_module_get(b);
}
+EXPORT_SYMBOL_GPL(ref_module);
static inline int module_unload_init(struct module *mod)
{