Skip to content

Commit

Permalink
fs: Mark get_filesystem_list() as __init function.
Browse files Browse the repository at this point in the history
"int get_filesystem_list(char * buf)" is called by only
"static void __init get_fs_names(char *page)".
We can mark get_filesystem_list() as "__init".

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Tetsuo Handa authored and Al Viro committed Apr 21, 2009
1 parent 2eae7a1 commit 38e23c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/filesystems.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ SYSCALL_DEFINE3(sysfs, int, option, unsigned long, arg1, unsigned long, arg2)
return retval;
}

int get_filesystem_list(char * buf)
int __init get_filesystem_list(char *buf)
{
int len = 0;
struct file_system_type * tmp;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ struct ctl_table;
int proc_nr_files(struct ctl_table *table, int write, struct file *filp,
void __user *buffer, size_t *lenp, loff_t *ppos);

int get_filesystem_list(char * buf);
int __init get_filesystem_list(char *buf);

#endif /* __KERNEL__ */
#endif /* _LINUX_FS_H */

0 comments on commit 38e23c9

Please sign in to comment.