linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] fsck.f2fs: declare static function
@ 2015-11-22  3:29 Jaegeuk Kim
  2015-11-22  3:29 ` [PATCH 2/2] fsck.f2fs: support a readonly filesystem Jaegeuk Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Jaegeuk Kim @ 2015-11-22  3:29 UTC (permalink / raw)
  To: linux-f2fs-devel; +Cc: Jaegeuk Kim

This avoids the following warning.

mount.c:783:27: warning: SM_I is static but used in inline function
check_seg_range which is not static.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 fsck/mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsck/mount.c b/fsck/mount.c
index 649940d..ae3065f 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -778,7 +778,7 @@ static void build_curseg(struct f2fs_sb_info *sbi)
 	restore_curseg_summaries(sbi);
 }
 
-inline void check_seg_range(struct f2fs_sb_info *sbi, unsigned int segno)
+static inline void check_seg_range(struct f2fs_sb_info *sbi, unsigned int segno)
 {
 	unsigned int end_segno = SM_I(sbi)->segment_count - 1;
 	ASSERT(segno <= end_segno);
-- 
2.4.9 (Apple Git-60)


------------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-22  3:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-22  3:29 [PATCH 1/2] fsck.f2fs: declare static function Jaegeuk Kim
2015-11-22  3:29 ` [PATCH 2/2] fsck.f2fs: support a readonly filesystem Jaegeuk Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).