Skip to content

Commit db25155

Browse files
YueHaibingJaegeuk Kim
authored andcommitted
f2fs: xattr.h: Make stub helpers inline
Fix gcc warnings: In file included from fs/f2fs/dir.c:15:0: fs/f2fs/xattr.h:157:13: warning: 'f2fs_destroy_xattr_caches' defined but not used [-Wunused-function] static void f2fs_destroy_xattr_caches(struct f2fs_sb_info *sbi) { } ^~~~~~~~~~~~~~~~~~~~~~~~~ fs/f2fs/xattr.h:156:12: warning: 'f2fs_init_xattr_caches' defined but not used [-Wunused-function] static int f2fs_init_xattr_caches(struct f2fs_sb_info *sbi) { return 0; } Reported-by: Hulk Robot <[email protected]> Fixes: a999150 ("f2fs: use kmem_cache pool during inline xattr lookups") Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 7487856 commit db25155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/f2fs/xattr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ static inline ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer,
153153
{
154154
return -EOPNOTSUPP;
155155
}
156-
static int f2fs_init_xattr_caches(struct f2fs_sb_info *sbi) { return 0; }
157-
static void f2fs_destroy_xattr_caches(struct f2fs_sb_info *sbi) { }
156+
static inline int f2fs_init_xattr_caches(struct f2fs_sb_info *sbi) { return 0; }
157+
static inline void f2fs_destroy_xattr_caches(struct f2fs_sb_info *sbi) { }
158158
#endif
159159

160160
#ifdef CONFIG_F2FS_FS_SECURITY

0 commit comments

Comments
 (0)