The public function vfs_stat() and vfs_fstatat() are unexported after moving out of line in commit 09f1bde4017e ("fs: move vfs_fstatat out of line"), which will prevent the using in kernel modules. So make them exported. Fixes: 09f1bde4017e ("fs: move vfs_fstatat out of line") Reported-by: Yang Shen <shenyang39@xxxxxxxxxx> Signed-off-by: Yicong Yang <yangyicong@xxxxxxxxxxxxx> --- fs/stat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/stat.c b/fs/stat.c index dacecdd..7d690c6 100644 --- a/fs/stat.c +++ b/fs/stat.c @@ -147,6 +147,7 @@ int vfs_fstat(int fd, struct kstat *stat) fdput(f); return error; } +EXPORT_SYMBOL(vfs_fstat); /** * vfs_statx - Get basic and extra attributes by filename @@ -207,6 +208,7 @@ int vfs_fstatat(int dfd, const char __user *filename, return vfs_statx(dfd, filename, flags | AT_NO_AUTOMOUNT, stat, STATX_BASIC_STATS); } +EXPORT_SYMBOL(vfs_fstatat); #ifdef __ARCH_WANT_OLD_STAT -- 2.8.1