From: Mikael Pettersson <mikpe@csd.uu.se>
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org
Subject: [PATCH][2.6.0-test7] ftape linkage error
Date: Thu, 9 Oct 2003 14:41:10 +0200 [thread overview]
Message-ID: <16261.22374.861491.176410@gargle.gargle.HOWL> (raw)
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) */
reply other threads:[~2003-10-09 12:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16261.22374.861491.176410@gargle.gargle.HOWL \
--to=mikpe@csd.uu.se \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®