From: YueHaibing Date: Sat, 28 Mar 2020 11:27:36 +0000 (+0800) Subject: f2fs: xattr.h: Make stub helpers inline X-Git-Tag: v5.7-rc1~60^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db251553c752173371d1d8bcf4a3d58d2ce9e6dd;p=thirdparty%2Fkernel%2Flinux.git 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 Fixes: a999150f4fe3 ("f2fs: use kmem_cache pool during inline xattr lookups") Signed-off-by: YueHaibing Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/xattr.h b/fs/f2fs/xattr.h index e471be77f8f00..938fcd20565dc 100644 --- a/fs/f2fs/xattr.h +++ b/fs/f2fs/xattr.h @@ -153,8 +153,8 @@ static inline ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, { return -EOPNOTSUPP; } -static int f2fs_init_xattr_caches(struct f2fs_sb_info *sbi) { return 0; } -static void f2fs_destroy_xattr_caches(struct f2fs_sb_info *sbi) { } +static inline int f2fs_init_xattr_caches(struct f2fs_sb_info *sbi) { return 0; } +static inline void f2fs_destroy_xattr_caches(struct f2fs_sb_info *sbi) { } #endif #ifdef CONFIG_F2FS_FS_SECURITY