“c52a4ea4f0d5735542d9df16bc4d42348577b610”上不存在“...mgmt/node_util/git@gitcode.net:taosdata/tdengine.git”
提交 7ef5264d 编写于 作者: C Christoph Hellwig 提交者: Jessica Yu

modules: mark ref_module static

ref_module isn't used anywhere outside of module.c.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJessica Yu <jeyu@kernel.org>
上级 c6a8b84d
...@@ -657,7 +657,6 @@ static inline void __module_get(struct module *module) ...@@ -657,7 +657,6 @@ static inline void __module_get(struct module *module)
#define symbol_put_addr(p) do { } while (0) #define symbol_put_addr(p) do { } while (0)
#endif /* CONFIG_MODULE_UNLOAD */ #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 */ /* This is a #define so the string doesn't get put in every .o file */
#define module_name(mod) \ #define module_name(mod) \
......
...@@ -869,7 +869,7 @@ static int add_module_usage(struct module *a, struct module *b) ...@@ -869,7 +869,7 @@ static int add_module_usage(struct module *a, struct module *b)
} }
/* Module a uses b: caller needs module_mutex() */ /* Module a uses b: caller needs module_mutex() */
int ref_module(struct module *a, struct module *b) static int ref_module(struct module *a, struct module *b)
{ {
int err; int err;
...@@ -888,7 +888,6 @@ int ref_module(struct module *a, struct module *b) ...@@ -888,7 +888,6 @@ int ref_module(struct module *a, struct module *b)
} }
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(ref_module);
/* Clear the unload stuff of the module. */ /* Clear the unload stuff of the module. */
static void module_unload_free(struct module *mod) static void module_unload_free(struct module *mod)
...@@ -1169,11 +1168,10 @@ static inline void module_unload_free(struct module *mod) ...@@ -1169,11 +1168,10 @@ static inline void module_unload_free(struct module *mod)
{ {
} }
int ref_module(struct module *a, struct module *b) static int ref_module(struct module *a, struct module *b)
{ {
return strong_try_module_get(b); return strong_try_module_get(b);
} }
EXPORT_SYMBOL_GPL(ref_module);
static inline int module_unload_init(struct module *mod) static inline int module_unload_init(struct module *mod)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册