Skip to contentSkip to conversation

f2fs: Fix build error while CONFIG_NLS=m

PATCH In review YueHaibing 2 participants 3 messages Aug 8, 2019 F2FS file system

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 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.

Fixes 61a3da4d5ef8 ("f2fs: support FS_IOC_{GET,SET}FSLABEL")
---
 fs/f2fs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/f2fs/Kconfig +1 -0
index 110a38c..95f1b99 100644
@@ -2,6 +2,7 @@
 config F2FS_FS
 	tristate "F2FS filesystem support"
 	depends on BLOCK
+	select NLS
 	select CRYPTO
 	select CRYPTO_CRC32
 	select F2FS_FS_XATTR if FS_ENCRYPTION
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw

Hi Haibing,

Thanks for the patch!

Out of curiosity, does Hulk Robot check linux-next git repo as well? This will be more valuable if the bug can be found during development of related patch?

Quoted 11 lines · YueHaibing

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.

Fixes 61a3da4d5ef8 ("f2fs: support FS_IOC_{GET,SET}FSLABEL")

Thanks,

author
#2 lore raw
Quoted 6 lines · Chao Yu

Hi Haibing,

Thanks for the patch!

Out of curiosity, does Hulk Robot check linux-next git repo as well? This will be more valuable if the bug can be found during development of related patch?

Yes, Hulk Robot now do this on linux-next.git and linux.git every day.

Quoted 20 lines · YueHaibing
Quoted 11 lines

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.

Fixes 61a3da4d5ef8 ("f2fs: support FS_IOC_{GET,SET}FSLABEL")

Thanks,

.