diff mbox

ext4: make ext4_shutdown() static

Message ID 20170419054825.9880-1-ebiggers3@gmail.com
State Awaiting Upstream, archived
Headers show

Commit Message

Eric Biggers April 19, 2017, 5:48 a.m. UTC
From: Eric Biggers <ebiggers@google.com>

Make the ext4_shutdown() function static, as suggested by running sparse
('make C=2 fs/ext4/').  This was the only such warning in fs/ext4/.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 fs/ext4/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Theodore Ts'o April 30, 2017, 4:41 a.m. UTC | #1
On Tue, Apr 18, 2017 at 10:48:25PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Make the ext4_shutdown() function static, as suggested by running sparse
> ('make C=2 fs/ext4/').  This was the only such warning in fs/ext4/.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>

Thanks, applied.

					- Ted
diff mbox

Patch

diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index a4273ddb9922..06471430ea47 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -443,7 +443,7 @@  static inline unsigned long ext4_xflags_to_iflags(__u32 xflags)
 	return iflags;
 }
 
-int ext4_shutdown(struct super_block *sb, unsigned long arg)
+static int ext4_shutdown(struct super_block *sb, unsigned long arg)
 {
 	struct ext4_sb_info *sbi = EXT4_SB(sb);
 	__u32 flags;