WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] pvSCSI: compilation fix.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] pvSCSI: compilation fix.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 18 Jul 2008 14:44:01 +0900
Delivery-date: Thu, 17 Jul 2008 22:44:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# 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@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] pvSCSI: compilation fix., Isaku Yamahata <=