Skip to content

Commit e0cbee3

Browse files
H Hartley Sweetentytso
authored andcommitted
ext4: functions should not be declared extern
The function declarations in ext4.h are already marked extern, so it's not necessary to do so in the .c files. This quiets the sparse noise: warning: function 'ext4_flush_completed_IO' with external linkage has definition warning: function 'ext4_init_inode_table' with external linkage has definition Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent 1bce63d commit e0cbee3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/ext4/fsync.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static void dump_completed_IO(struct inode * inode)
7575
* to written.
7676
* The function return the number of pending IOs on success.
7777
*/
78-
extern int ext4_flush_completed_IO(struct inode *inode)
78+
int ext4_flush_completed_IO(struct inode *inode)
7979
{
8080
ext4_io_end_t *io;
8181
struct ext4_inode_info *ei = EXT4_I(inode);

‎fs/ext4/ialloc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ unsigned long ext4_count_dirs(struct super_block * sb)
11001100
* inode allocation from the current group, so we take alloc_sem lock, to
11011101
* block ext4_claim_inode until we are finished.
11021102
*/
1103-
extern int ext4_init_inode_table(struct super_block *sb, ext4_group_t group,
1103+
int ext4_init_inode_table(struct super_block *sb, ext4_group_t group,
11041104
int barrier)
11051105
{
11061106
struct ext4_group_info *grp = ext4_get_group_info(sb, group);

0 commit comments

Comments
 (0)