History

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.

Jianjun Kong committed 17 years ago

Commit d1e99d71 parent ca4787b1 file · +2 −2Browse files

Unified · Split

kernel/module.c+2−2
@@ -820,7 +820,7 @@ sys_delete_module(const char __user *name_user, unsigned int flags) · 819 unmodified lines
820820 return ret;
821821 }
822822
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)
824824 {
825825 struct module_use *use;
826826 int printed_something = 0;
@@ -893,7 +893,7 @@ void module_put(struct module *module) · 66 unmodified lines
893893 EXPORT_SYMBOL(module_put);
894894
895895 #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)
897897 {
898898 /* We don't know the usage count, or what modules are using. */
899899 seq_printf(m, " - -");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t