All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][2.6.0-test7] ftape linkage error
@ 2003-10-09 12:41 Mikael Pettersson
  0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2003-10-09 12:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

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) */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-09 12:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09 12:41 [PATCH][2.6.0-test7] ftape linkage error Mikael Pettersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.