From: H Hartley Sweeten Date: Fri, 23 Sep 2011 20:55:52 +0000 (-0700) Subject: ext3/balloc.c: local functions should be static X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3ee77f2091c229a72c64d9aeef1ee4a7624e5795;p=linux-beck.git ext3/balloc.c: local functions should be static This quites the sparse noise: warning: symbol 'ext3_trim_all_free' was not declared. Should it be static? Signed-off-by: H Hartley Sweeten Cc: Jan Kara Cc: Andrew Morton Cc: Andreas Dilger Signed-off-by: Jan Kara --- diff --git a/fs/ext3/balloc.c b/fs/ext3/balloc.c index caedc00520ed..a7fceaba87f1 100644 --- a/fs/ext3/balloc.c +++ b/fs/ext3/balloc.c @@ -1924,9 +1924,10 @@ unsigned long ext3_bg_num_gdb(struct super_block *sb, int group) * reaches any used block. Then issue a TRIM command on this extent and free * the extent in the block bitmap. This is done until whole group is scanned. */ -ext3_grpblk_t ext3_trim_all_free(struct super_block *sb, unsigned int group, - ext3_grpblk_t start, ext3_grpblk_t max, - ext3_grpblk_t minblocks) +static ext3_grpblk_t ext3_trim_all_free(struct super_block *sb, + unsigned int group, + ext3_grpblk_t start, ext3_grpblk_t max, + ext3_grpblk_t minblocks) { handle_t *handle; ext3_grpblk_t next, free_blocks, bit, freed, count = 0;