Skip to contentSkip to conversation

, trivial patch for dm-target.c with correction

PATCH New Dave Olien 1 participant 1 message Apr 28, 2004 Device mapper

lore
Share & tools
lore

Dave Olien

author
#0 lore raw

PATCH 1/1 , trivial patch for dm-target.c with correction

Sorry, I made an error on that last patch to dm-target.c. I overlooked that it needed the init.h header file included also, and I had not compiled the change because it was "so trivial".

Please use this patch instead.

drivers/md/dm-target.c +3 -2
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
@@ -7,6 +7,7 @@
 #include "dm.h"
 
 #include <linux/module.h>
+#include <linux/init.h>
 #include <linux/kmod.h>
 #include <linux/bio.h>
 #include <linux/slab.h>
@@ -181,12 +182,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");