File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -657,7 +657,6 @@ static inline void __module_get(struct module *module)
657
657
#define symbol_put_addr (p ) do { } while (0)
658
658
659
659
#endif /* CONFIG_MODULE_UNLOAD */
660
- int ref_module (struct module * a , struct module * b );
661
660
662
661
/* This is a #define so the string doesn't get put in every .o file */
663
662
#define module_name (mod ) \
Original file line number Diff line number Diff line change @@ -869,7 +869,7 @@ static int add_module_usage(struct module *a, struct module *b)
869
869
}
870
870
871
871
/* Module a uses b: caller needs module_mutex() */
872
- int ref_module (struct module * a , struct module * b )
872
+ static int ref_module (struct module * a , struct module * b )
873
873
{
874
874
int err ;
875
875
@@ -888,7 +888,6 @@ int ref_module(struct module *a, struct module *b)
888
888
}
889
889
return 0 ;
890
890
}
891
- EXPORT_SYMBOL_GPL (ref_module );
892
891
893
892
/* Clear the unload stuff of the module. */
894
893
static void module_unload_free (struct module * mod )
@@ -1169,11 +1168,10 @@ static inline void module_unload_free(struct module *mod)
1169
1168
{
1170
1169
}
1171
1170
1172
- int ref_module (struct module * a , struct module * b )
1171
+ static int ref_module (struct module * a , struct module * b )
1173
1172
{
1174
1173
return strong_try_module_get (b );
1175
1174
}
1176
- EXPORT_SYMBOL_GPL (ref_module );
1177
1175
1178
1176
static inline int module_unload_init (struct module * mod )
1179
1177
{
You can’t perform that action at this time.
0 commit comments