Fix this warning: kernel/module.c:824: warning: ‘print_unload_info’ defined but not used print_unload_info() just was used when CONFIG_PROC_FS was defined. This patch mark print_unload_info() inline to solve the problem.
Unified · Split
| @@ -820,7 +820,7 @@ sys_delete_module(const char __user *name_user, unsigned int flags) · 819 unmodified lines | ||
| 820 | 820 | return ret; |
| 821 | 821 | } |
| 822 | 822 | |
| 823 | −static void print_unload_info(struct seq_file *m, struct module *mod) | |
| 823 | +static inline void print_unload_info(struct seq_file *m, struct module *mod) | |
| 824 | 824 | { |
| 825 | 825 | struct module_use *use; |
| 826 | 826 | int printed_something = 0; |
| @@ -893,7 +893,7 @@ void module_put(struct module *module) · 66 unmodified lines | ||
| 893 | 893 | EXPORT_SYMBOL(module_put); |
| 894 | 894 | |
| 895 | 895 | #else /* !CONFIG_MODULE_UNLOAD */ |
| 896 | −static void print_unload_info(struct seq_file *m, struct module *mod) | |
| 896 | +static inline void print_unload_info(struct seq_file *m, struct module *mod) | |
| 897 | 897 | { |
| 898 | 898 | /* We don't know the usage count, or what modules are using. */ |
| 899 | 899 | seq_printf(m, " - -"); |