Skip to contentSkip to conversation

fs: ext4: make locally used ext4fs_get_indir_block() static

PATCH Applied Antony Pavlov 2 participants 2 messages Feb 16, 2016 – Feb 17, 2016 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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)
^

---
 fs/ext4/ext4_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/ext4/ext4_common.c +2 -1
index 590f54d..1ecbb8d 100644
@@ -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;
Signature · 7 lines
2.7.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 9 lines · Antony Pavlov

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)
^

Quoted 4 lines
---
 fs/ext4/ext4_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox