- make scsifront_cmd_done() static - properly annotate XenBus setup/cleanup functions Signed-off-by: Jan Beulich <jbeulich@suse.com> --- 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); } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel