* [PATCH] trivial patch to dm-target.c
@ 2004-04-28 1:04 Dave Olien
0 siblings, 0 replies; only message in thread
From: Dave Olien @ 2004-04-28 1:04 UTC (permalink / raw)
To: thornber; +Cc: dm-devel, linux-kernel
This patch just adds __init and __exit qualifiers on dm_target_init()
and dm_target_exit(), since these are called only by dm_init() and
dm_exit(), which are also have these qualifiers respectively.
diff -ur linux-2.6.6-rc2-udm1-original/drivers/md/dm-target.c linux-2.6.6-rc2-udm1-patched/drivers/md/dm-target.c
--- linux-2.6.6-rc2-udm1-original/drivers/md/dm-target.c 2004-04-27 17:59:53.000000000 -0700
+++ linux-2.6.6-rc2-udm1-patched/drivers/md/dm-target.c 2004-04-27 17:59:25.000000000 -0700
@@ -181,12 +181,12 @@
.map = io_err_map,
};
-int dm_target_init(void)
+int __init dm_target_init(void)
{
return dm_register_target(&error_target);
}
-void dm_target_exit(void)
+void __exit dm_target_exit(void)
{
if (dm_unregister_target(&error_target))
DMWARN("error target unregistration failed");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-28 1:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-28 1:04 [PATCH] trivial patch to dm-target.c Dave Olien
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox