Skip to content

Commit ea0856c

Browse files
rashikatorvalds
authored andcommitted
fs/reiserfs: move prototype declaration to header file
Move prototype declaration to header file reiserfs/reiserfs.h from reiserfs/super.c because they are used by more than one file. This eliminates the following warning in reiserfs/bitmap.c: fs/reiserfs/bitmap.c:647:6: warning: no previous prototype for `show_alloc_options' [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Acked-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c11e614 commit ea0856c

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/reiserfs/reiserfs.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,6 +2831,7 @@ void reiserfs_init_alloc_options(struct super_block *s);
28312831
*/
28322832
__le32 reiserfs_choose_packing(struct inode *dir);
28332833

2834+
void show_alloc_options(struct seq_file *seq, struct super_block *s);
28342835
int reiserfs_init_bitmap_cache(struct super_block *sb);
28352836
void reiserfs_free_bitmap_cache(struct super_block *sb);
28362837
void reiserfs_cache_bitmap_metadata(struct super_block *sb, struct buffer_head *bh, struct reiserfs_bitmap_info *info);

‎fs/reiserfs/super.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ static int is_any_reiserfs_magic_string(struct reiserfs_super_block *rs)
6262

6363
static int reiserfs_remount(struct super_block *s, int *flags, char *data);
6464
static int reiserfs_statfs(struct dentry *dentry, struct kstatfs *buf);
65-
void show_alloc_options(struct seq_file *seq, struct super_block *s);
6665

6766
static int reiserfs_sync_fs(struct super_block *s, int wait)
6867
{

0 commit comments

Comments
 (0)