# HG changeset patch
# User Isaku Yamahata <yamahata@valinux.co.jp>
# Date 1216359788 -32400
# Node ID 29720a1232a7a7525b6558747349aab2efd1d3ea
# Parent 5644f68a7912e39585d9cbf3bc0a3800884ae693
pvSCSI: compilation fix.
This patch fixes the following compilation error.
scsiback_interface_exit() is called by scsiback_init().
remove __exit.
> LD .tmp_vmlinux1
>`scsiback_interface_exit'' referenced in section
`.init.text'' of drivers/built-in.o: defined in discarded section
`.exit.text'' of drivers/built-in.o
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
diff --git a/drivers/xen/scsiback/common.h b/drivers/xen/scsiback/common.h
--- a/drivers/xen/scsiback/common.h
+++ b/drivers/xen/scsiback/common.h
@@ -152,7 +152,7 @@
void scsiback_free(struct vscsibk_info *info);
void scsiback_disconnect(struct vscsibk_info *info);
int __init scsiback_interface_init(void);
-void __exit scsiback_interface_exit(void);
+void scsiback_interface_exit(void);
int scsiback_xenbus_init(void);
void scsiback_xenbus_unregister(void);
diff --git a/drivers/xen/scsiback/interface.c b/drivers/xen/scsiback/interface.c
--- a/drivers/xen/scsiback/interface.c
+++ b/drivers/xen/scsiback/interface.c
@@ -176,7 +176,7 @@
return 0;
}
-void __exit scsiback_interface_exit(void)
+void scsiback_interface_exit(void)
{
kmem_cache_destroy(scsiback_cachep);
}
--
yamahata
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel