fix (UDF_FS=y && NLS=m) compile error
Subsystems (2)
PATCH 1/1 fix (UDF_FS=y && NLS=m) compile error
The patch below fixes Bugzilla #3030 ((UDF_FS=y && NLS=m) results in a compile error).
diffstat output:
fs/Kconfig | 5 +++++ fs/udf/super.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-)
Signed-off-by Adrian Bunk <[email protected]>
fs/Kconfig renamed from fs/Kconfig.old +5 -0
@@ -575,6 +575,11 @@ If unsure, say N. +config UDF_NLS + bool + default y + depends on (UDF_FS=m && NLS) || (UDF_FS=y && NLS=y) + endmenu menu "DOS/FAT/NT Filesystems"
fs/udf/super.c renamed from fs/udf/super.c.old +4 -4
@@ -417,7 +417,7 @@case Opt_utf8: uopt->flags |= (1 <<UDF_FLAG_UTF8 );break ; -#if defined(CONFIG_NLS ) || defined(CONFIG_NLS_MODULE ) +#ifdef CONFIG_UDF_NLS case Opt_iocharset: uopt->nls_map =load_nls (args[0 ].from); uopt->flags |= (1 <<UDF_FLAG_NLS_MAP );
@@ -1518,7 +1518,7 @@ "utf8 cannot be combined with iocharset\n"); goto error_out; } -#if defined(CONFIG_NLS ) || defined(CONFIG_NLS_MODULE ) +#ifdef CONFIG_UDF_NLS if ((uopt.flags & (1 <<UDF_FLAG_NLS_MAP )) && !uopt.nls_map) { uopt.nls_map =load_nls_default ();
@@ -1668,7 +1668,7 @@udf_release_data (UDF_SB_TYPESPAR (sb,UDF_SB_PARTITION (sb)).s_spar_map[i]); } } -#if defined(CONFIG_NLS ) || defined(CONFIG_NLS_MODULE ) +#ifdef CONFIG_UDF_NLS if (UDF_QUERY_FLAG (sb,UDF_FLAG_NLS_MAP ))unload_nls (UDF_SB (sb)->s_nls_map);#endif
@@ -1746,7 +1746,7 @@udf_release_data (UDF_SB_TYPESPAR (sb,UDF_SB_PARTITION (sb)).s_spar_map[i]); } } -#if defined(CONFIG_NLS ) || defined(CONFIG_NLS_MODULE ) +#ifdef CONFIG_UDF_NLS if (UDF_QUERY_FLAG (sb,UDF_FLAG_NLS_MAP ))unload_nls (UDF_SB (sb)->s_nls_map);#endif