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

[Xen-changelog] [linux-2.6.18-xen] scsifront: more cleanup


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
  • Date: Thu, 22 Nov 2012 16:55:04 +0000
  • Delivery-date: Thu, 22 Nov 2012 16:55:17 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1353602880 -3600
# Node ID 1f1b30566a42de417a2f2d1111376266e6464a51
# Parent  55dc1c7f8290fdbc33f77410ce470a636d65fc48
scsifront: more cleanup

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

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


diff -r 55dc1c7f8290 -r 1f1b30566a42 drivers/xen/scsifront/common.h
--- a/drivers/xen/scsifront/common.h    Thu Nov 22 17:42:10 2012 +0100
+++ b/drivers/xen/scsifront/common.h    Thu Nov 22 17:48:00 2012 +0100
@@ -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__  */
diff -r 55dc1c7f8290 -r 1f1b30566a42 drivers/xen/scsifront/scsifront.c
--- a/drivers/xen/scsifront/scsifront.c Thu Nov 22 17:42:10 2012 +0100
+++ b/drivers/xen/scsifront/scsifront.c Thu Nov 22 17:48:00 2012 +0100
@@ -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;
 
diff -r 55dc1c7f8290 -r 1f1b30566a42 drivers/xen/scsifront/xenbus.c
--- a/drivers/xen/scsifront/xenbus.c    Thu Nov 22 17:42:10 2012 +0100
+++ b/drivers/xen/scsifront/xenbus.c    Thu Nov 22 17:48:00 2012 +0100
@@ -411,12 +411,12 @@ static DEFINE_XENBUS_DRIVER(scsifront, ,
        .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);
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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