lkml.org 
[lkml]   [2004]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] trivial patch to dm-target.c

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");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.028 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site