summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4_common.c
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2016-02-17 00:13:59 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-17 13:50:50 +0100
commit66770e6a0265bcaded14db20ddca9b686c409341 (patch)
tree8f248f4ef93c60ca086081629faa5b4255827653 /fs/ext4/ext4_common.c
parent2b47e5279582351c4c799f171971e2d4341214b3 (diff)
downloadbarebox-66770e6a0265bcaded14db20ddca9b686c409341.tar.gz
barebox-66770e6a0265bcaded14db20ddca9b686c409341.tar.xz
fs: ext4: make locally used ext4fs_get_indir_block() static
The patch fixes this compiler's warning: CC fs/ext4/ext4_common.o fs/ext4/ext4_common.c:130:5: warning: no previous prototype for 'ext4fs_get_indir_block' [-Wmissing-prototypes] int ext4fs_get_indir_block(struct ext2fs_node *node, struct ext4fs_indir_block *indir, int blkno) ^ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/ext4/ext4_common.c')
-rw-r--r--fs/ext4/ext4_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index 590f54d5d8..1ecbb8dfb7 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -127,7 +127,8 @@ int ext4fs_read_inode(struct ext2_data *data, int ino, struct ext2_inode *inode)
return 0;
}
-int ext4fs_get_indir_block(struct ext2fs_node *node, struct ext4fs_indir_block *indir, int blkno)
+static int ext4fs_get_indir_block(struct ext2fs_node *node,
+ struct ext4fs_indir_block *indir, int blkno)
{
struct ext_filesystem *fs = node->data->fs;
int blksz;