Skip to content

Commit

Permalink
Fixed compilation for versions lower 3.3.0
Browse files Browse the repository at this point in the history
After kernel source review, i find out that new syntax of function of function utf8s_to_utf16s from fs/nls/nls_base.c first time appear in version 3.0.101, please see
http://tomoyo.osdn.jp/cgi-bin/lxr/source/fs/nls/nls_base.c?v=linux-3.0.101
  • Loading branch information
romantymoshyk committed Nov 17, 2015
1 parent 593e1ce commit 26c7e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exfat_nls.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ void nls_cstring_to_uniname(struct super_block *sb, UNI_NAME_T *p_uniname, u8 *p
lossy = TRUE;

if (nls == NULL) {
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,101)
i = utf8s_to_utf16s(p_cstring, MAX_NAME_LENGTH, uniname);
#else
i = utf8s_to_utf16s(p_cstring, MAX_NAME_LENGTH, UTF16_HOST_ENDIAN, uniname, MAX_NAME_LENGTH);
Expand Down

0 comments on commit 26c7e4f

Please sign in to comment.