[2.6 patch] fix (UDF_FS=y && NLS=m) compile error

From: Adrian Bunk
Date: Fri Jul 09 2004 - 21:22:07 EST


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 <bunk@xxxxxxxxx>

--- linux-2.6.7-mm7-modular/fs/Kconfig.old 2004-07-10 04:04:10.000000000 +0200
+++ linux-2.6.7-mm7-modular/fs/Kconfig 2004-07-10 04:06:26.000000000 +0200
@@ -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"
--- linux-2.6.7-mm7-modular/fs/udf/super.c.old 2004-07-10 04:03:01.000000000 +0200
+++ linux-2.6.7-mm7-modular/fs/udf/super.c 2004-07-10 04:03:55.000000000 +0200
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/