[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] linux-2.6.18/scsifront: more cleanup


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxx>
  • From: "Jan Beulich" <JBeulich@xxxxxxxx>
  • Date: Wed, 21 Nov 2012 16:46:10 +0000
  • Delivery-date: Wed, 21 Nov 2012 16:45:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

- make scsifront_cmd_done() static
- properly annotate XenBus setup/cleanup functions

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/drivers/xen/scsifront/common.h
+++ b/drivers/xen/scsifront/common.h
@@ -125,7 +125,6 @@ int scsifront_xenbus_init(void);
 void scsifront_xenbus_unregister(void);
 int scsifront_schedule(void *data);
 irqreturn_t scsifront_intr(int irq, void *dev_id, struct pt_regs *ptregs);
-int scsifront_cmd_done(struct vscsifrnt_info *info);
 
 
 #endif /* __XEN_DRIVERS_SCSIFRONT_H__  */
--- a/drivers/xen/scsifront/scsifront.c
+++ b/drivers/xen/scsifront/scsifront.c
@@ -176,7 +176,7 @@ static void scsifront_sync_cmd_done(stru
 }
 
 
-int scsifront_cmd_done(struct vscsifrnt_info *info)
+static int scsifront_cmd_done(struct vscsifrnt_info *info)
 {
        vscsiif_response_t *ring_res;
 
--- a/drivers/xen/scsifront/xenbus.c
+++ b/drivers/xen/scsifront/xenbus.c
@@ -413,12 +413,12 @@ static struct xenbus_driver scsifront_dr
        .otherend_changed       = scsifront_backend_changed,
 };
 
-int scsifront_xenbus_init(void)
+int __init scsifront_xenbus_init(void)
 {
        return xenbus_register_frontend(&scsifront_driver);
 }
 
-void scsifront_xenbus_unregister(void)
+void __exit scsifront_xenbus_unregister(void)
 {
        xenbus_unregister_driver(&scsifront_driver);
 }



Attachment: xen-scsifront-cleanup2.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.