From: "Jan Beulich" Subject: [PATCH] linux: properly __init-annotate blktap2 code Date: Wed, 09 Dec 2009 15:39:46 +0000 Message-ID: <4B1FD2D20200007800024916@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part2A0073D2.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part2A0073D2.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- head-2009-12-07.orig/drivers/xen/blktap2/blktap.h 2009-11-03 = 10:35:24.000000000 +0100 +++ head-2009-12-07/drivers/xen/blktap2/blktap.h 2009-12-09 = 16:16:17.000000000 +0100 @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include --- head-2009-12-07.orig/drivers/xen/blktap2/control.c 2009-11-06 = 10:51:17.000000000 +0100 +++ head-2009-12-07/drivers/xen/blktap2/control.c 2009-12-09 = 16:17:13.000000000 +0100 @@ -203,7 +203,7 @@ blktap_control_destroy_device(struct blk return err; } =20 -static int +static int __init blktap_control_init(void) { int err; --- head-2009-12-07.orig/drivers/xen/blktap2/device.c 2009-11-03 = 10:45:45.000000000 +0100 +++ head-2009-12-07/drivers/xen/blktap2/device.c 2009-12-09 = 16:17:32.000000000 +0100 @@ -1162,7 +1162,7 @@ blktap_device_create(struct blktap *tap) return err; } =20 -int +int __init blktap_device_init(int *maj) { int major; --- head-2009-12-07.orig/drivers/xen/blktap2/request.c 2009-05-29 = 10:25:53.000000000 +0200 +++ head-2009-12-07/drivers/xen/blktap2/request.c 2009-12-09 = 16:17:42.000000000 +0100 @@ -271,7 +271,7 @@ blktap_request_pool_free(void) spin_unlock_irqrestore(&pool.lock, flags); } =20 -int +int __init blktap_request_pool_init(void) { int i, err; --- head-2009-12-07.orig/drivers/xen/blktap2/ring.c 2009-11-06 = 10:51:32.000000000 +0100 +++ head-2009-12-07/drivers/xen/blktap2/ring.c 2009-12-09 16:18:02.0000000= 00 +0100 @@ -586,7 +586,7 @@ blktap_ring_create(struct blktap *tap) return blktap_sysfs_create(tap); } =20 -int +int __init blktap_ring_init(int *major) { int err; --- head-2009-12-07.orig/drivers/xen/blktap2/sysfs.c 2009-12-09 = 16:14:04.000000000 +0100 +++ head-2009-12-07/drivers/xen/blktap2/sysfs.c 2009-12-09 16:18:15.0000000= 00 +0100 @@ -435,7 +435,7 @@ blktap_sysfs_free(void) class_destroy(class); } =20 -int +int __init blktap_sysfs_init(void) { struct class *cls; --=__Part2A0073D2.0__= Content-Type: text/plain; name="xenlinux-blktap-sections.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xenlinux-blktap-sections.patch" Subject: properly __init-annotate blktap2 code=0A=0ASigned-off-by: Jan = Beulich =0A=0A--- head-2009-12-07.orig/drivers/xen/blk= tap2/blktap.h 2009-11-03 10:35:24.000000000 +0100=0A+++ head-2009-12-07/d= rivers/xen/blktap2/blktap.h 2009-12-09 16:16:17.000000000 +0100=0A@@ = -4,6 +4,7 @@=0A #include =0A #include =0A = #include =0A+#include =0A #include =0A #include =0A #include =0A--- = head-2009-12-07.orig/drivers/xen/blktap2/control.c 2009-11-06 = 10:51:17.000000000 +0100=0A+++ head-2009-12-07/drivers/xen/blktap2/control.= c 2009-12-09 16:17:13.000000000 +0100=0A@@ -203,7 +203,7 @@ = blktap_control_destroy_device(struct blk=0A return err;=0A }=0A = =0A-static int=0A+static int __init=0A blktap_control_init(void)=0A {=0A = int err;=0A--- head-2009-12-07.orig/drivers/xen/blktap2/device.c = 2009-11-03 10:45:45.000000000 +0100=0A+++ head-2009-12-07/drivers/xen/blkta= p2/device.c 2009-12-09 16:17:32.000000000 +0100=0A@@ -1162,7 +1162,7 = @@ blktap_device_create(struct blktap *tap)=0A return err;=0A }=0A = =0A-int=0A+int __init=0A blktap_device_init(int *maj)=0A {=0A int = major;=0A--- head-2009-12-07.orig/drivers/xen/blktap2/request.c 2009-05-29 = 10:25:53.000000000 +0200=0A+++ head-2009-12-07/drivers/xen/blktap2/request.= c 2009-12-09 16:17:42.000000000 +0100=0A@@ -271,7 +271,7 @@ = blktap_request_pool_free(void)=0A spin_unlock_irqrestore(&pool.lock, = flags);=0A }=0A =0A-int=0A+int __init=0A blktap_request_pool_init(void)=0A = {=0A int i, err;=0A--- head-2009-12-07.orig/drivers/xen/blktap2/ring.c = 2009-11-06 10:51:32.000000000 +0100=0A+++ head-2009-12-07/drivers/xen/blkta= p2/ring.c 2009-12-09 16:18:02.000000000 +0100=0A@@ -586,7 +586,7 @@ = blktap_ring_create(struct blktap *tap)=0A return blktap_sysfs_create(= tap);=0A }=0A =0A-int=0A+int __init=0A blktap_ring_init(int *major)=0A = {=0A int err;=0A--- head-2009-12-07.orig/drivers/xen/blktap2/sysfs.c = 2009-12-09 16:14:04.000000000 +0100=0A+++ head-2009-12-07/drivers/xen/blkta= p2/sysfs.c 2009-12-09 16:18:15.000000000 +0100=0A@@ -435,7 +435,7 @@ = blktap_sysfs_free(void)=0A class_destroy(class);=0A }=0A =0A-int=0A+in= t __init=0A blktap_sysfs_init(void)=0A {=0A struct class *cls;=0A --=__Part2A0073D2.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part2A0073D2.0__=--