2000-12-16 21:48:21

by Stanislav Meduna

[permalink] [raw]
Subject: ntfs trivial patch

Hello,

it is impossible to load a ntfs module in 2.4.0-test{11,12} -
the symbol ntdebug is not defined. The symbol is only defined
when building with DEBUG, but it is always declared as module
parameter. Following trivial patch fixes it.

Sorry if this was already posted - I don't read the whole
l-k, grep for ntfs|ntdebug in subjects returned nothing
and http://www.atnf.csiro.au/~rgooch/linux/docs/kernel-newsflash.html
seems to be a bit behind the actual kernels.

diff -uN fs/ntfs/fs.c.orig fs/ntfs/fs.c
--- fs/ntfs/fs.c.orig Sat Dec 16 16:12:26 2000
+++ fs/ntfs/fs.c Sat Dec 16 22:02:56 2000
@@ -963,8 +963,10 @@
EXPORT_NO_SYMBOLS;
MODULE_AUTHOR("Martin von L?wis");
MODULE_DESCRIPTION("NTFS driver");
+#ifdef DEBUG
MODULE_PARM(ntdebug, "i");
MODULE_PARM_DESC(ntdebug, "Debug level");
+#endif

module_init(init_ntfs_fs)
module_exit(exit_ntfs_fs)