From: Mathieu Malaterre Date: Thu, 10 May 2018 15:50:04 +0000 (-0400) Subject: ext4: make function ‘ext4_getfsmap_find_fixed_metadata’ static X-Git-Tag: v4.18-rc1~143^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=472d8ea1951b7fde0b3f0fb1f770be4ece4cff7b;p=thirdparty%2Flinux.git ext4: make function ‘ext4_getfsmap_find_fixed_metadata’ static Since function ‘ext4_getfsmap_find_fixed_metadata’ can be made static, make it so. Remove the following gcc warning (W=1): fs/ext4/fsmap.c:405:5: warning: no previous prototype for ‘ext4_getfsmap_find_fixed_metadata’ [-Wmissing-prototypes] Signed-off-by: Mathieu Malaterre Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/fsmap.c b/fs/ext4/fsmap.c index e871c4bf18e9f..4b99e2db95b8b 100644 --- a/fs/ext4/fsmap.c +++ b/fs/ext4/fsmap.c @@ -402,8 +402,8 @@ static void ext4_getfsmap_free_fixed_metadata(struct list_head *meta_list) } /* Find all the fixed metadata in the filesystem. */ -int ext4_getfsmap_find_fixed_metadata(struct super_block *sb, - struct list_head *meta_list) +static int ext4_getfsmap_find_fixed_metadata(struct super_block *sb, + struct list_head *meta_list) { struct ext4_group_desc *gdp; ext4_group_t agno;