f2fs: Fix build error while CONFIG_NLS=m
authorYueHaibing <yuehaibing@huawei.com>
Thu, 8 Aug 2019 02:02:53 +0000 (10:02 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 23 Aug 2019 14:57:14 +0000 (07:57 -0700)
commitaabc172b986fd797065a61625c22a27a61f3f43d
tree8f3177932daeefc967c4fbbd9f1213108859b5d1
parenta37d0862d17411edb67677a580a6f505ec2225f6
f2fs: Fix build error while CONFIG_NLS=m

If CONFIG_F2FS_FS=y but CONFIG_NLS=m, building fails:

fs/f2fs/file.o: In function `f2fs_ioctl':
file.c:(.text+0xb86f): undefined reference to `utf16s_to_utf8s'
file.c:(.text+0xe651): undefined reference to `utf8s_to_utf16s'

Select CONFIG_NLS to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 61a3da4d5ef8 ("f2fs: support FS_IOC_{GET,SET}FSLABEL")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/Kconfig