* [TRIVIAL] [2.5 patch] MODULE_FORCE_UNLOAD must depend on MODULE_UNLOAD (fwd)
@ 2003-01-14 2:25 Rusty Trivial Russell
0 siblings, 0 replies; only message in thread
From: Rusty Trivial Russell @ 2003-01-14 2:25 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
From: Adrian Bunk <bunk@fs.tum.de>
Hi Linus,
the patch in the mail forwarded below is still needed in 2.5.56.
Rusty already stated that the patch is correct.
Please apply
Adrian
----- Forwarded message from Adrian Bunk <bunk@fs.tum.de> -----
Date: Wed, 8 Jan 2003 00:07:42 +0100
From: Adrian Bunk <bunk@fs.tum.de>
To: "Robert P. J. Day" <rpjday@mindspring.com>,
rusty@rustcorp.com.au,
Linus Torvalds <torvalds@transmeta.com>
Cc: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [2.5 patch] MODULE_FORCE_UNLOAD must depend on MODULE_UNLOAD
On Wed, Jan 01, 2003 at 02:55:01PM -0500, Robert P. J. Day wrote:
>...
> Loadable module support
>
> Does "Module unloading" mean whether or not I can run "rmmod"?
> And if I deselect this, why can I still select "Forced module
> unloading"? Either I can unload or I can't, no?
>...
Thanks for spotting this, after reading kernel/module.c it seems obvious
to me that you are right. The following simple patch fixes it:
--- trivial-2.5.57/init/Kconfig.orig 2003-01-14 12:11:56.000000000 +1100
+++ trivial-2.5.57/init/Kconfig 2003-01-14 12:11:56.000000000 +1100
@@ -156,7 +156,7 @@
config MODULE_FORCE_UNLOAD
bool "Forced module unloading"
- depends on MODULES && EXPERIMENTAL
+ depends on MODULE_UNLOAD && EXPERIMENTAL
help
This option allows you to force a module to unload, even if the
kernel believes it is unsafe: the kernel will remove the module
--
Don't blame me: the Monkey is driving
File: Adrian Bunk <bunk@fs.tum.de>: [2.5 patch] MODULE_FORCE_UNLOAD must depend on MODULE_UNLOAD (fwd)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-14 2:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 2:25 [TRIVIAL] [2.5 patch] MODULE_FORCE_UNLOAD must depend on MODULE_UNLOAD (fwd) Rusty Trivial Russell
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®