module: fix warning of unused function when !CONFIG_PROC_FS

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.

Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
CC: Ingo Molnar <mingo@elte.hu>
CC: Américo Wang <xiyou.wangcong@gmail.com>

authored by

Jianjun Kong and committed by
Rusty Russell
d1e99d7a ca4787b7

+2 -2
+2 -2
kernel/module.c
··· 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 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, " - -");