[PATCH][2.6.0-test7] ftape linkage error

From: Mikael Pettersson
Date: Thu Oct 09 2003 - 07:42:03 EST


Since 2.6.0-test6, ftape can't be configured as a built-in driver.
test6 changed ftape-init.c to call ftape_proc_destroy() also in
the non-MODULE case; however, ftape_proc_destroy() is only defined
when the driver is built as a module. The result is a linkage error.

This patch fixes this by deleting the #if MODULE around
ftape_proc_destroy()'s definition.

/Mikael

--- linux-2.6.0-test7/drivers/char/ftape/lowlevel/ftape-proc.c.~1~ 2002-02-20 03:11:01.000000000 +0100
+++ linux-2.6.0-test7/drivers/char/ftape/lowlevel/ftape-proc.c 2003-10-09 10:23:08.000000000 +0200
@@ -207,11 +207,9 @@
ftape_read_proc, NULL) != NULL;
}

-#ifdef MODULE
void ftape_proc_destroy(void)
{
remove_proc_entry("ftape", &proc_root);
}
-#endif

#endif /* defined(CONFIG_PROC_FS) && defined(CONFIG_FT_PROC_FS) */
-
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/