* Compilation fixes for blktap kernel patch
@ 2012-10-05 8:31 Moritz Mühlenhoff
0 siblings, 0 replies; 3+ messages in thread
From: Moritz Mühlenhoff @ 2012-10-05 8:31 UTC (permalink / raw)
To: xen-devel@lists.xen.org
[-- Attachment #1: Type: text/plain, Size: 829 bytes --]
Hi,
I hope this is the correct mailing list for the blktap patches available at
ftp://ftp.enjellic.com/pub/xen/ ?
When integrating the patch into Linux 3.2.30 I noticed two compile errors
related to a missing include of module.h:
/var/build/temp/tmp.TujmUayDmG/3.1-0-0/linux/linux-3.2.30/drivers/block/blktap/ring.c:536:
error: 'THIS_MODULE' undeclared here (not in a function)
I'm attaching patches against the
ftp://ftp.enjellic.com/pub/xen/blktap2-3.2.patch patch
Cheers,
Moritz
--
Moritz Mühlenhoff
Open Source Software Engineer
Univention GmbH
be open.
Mary-Somerville-Str.1
28359 Bremen
Tel. : +49 421 22232-0 [.....]
Fax : +49 421 22232-99
muehlenhoff@univention.de
http://www.univention.de
Geschäftsführer: Peter H. Ganten
HRB 20755 Amtsgericht Bremen
Steuer-Nr.: 71-597-02876
[-- Attachment #2: fix-blktap-patch1.diff --]
[-- Type: text/x-patch, Size: 837 bytes --]
From: Moritz Mühlenhoff <muehlenhoff@univention.de>
ring.c uses THIS_MODULE, so it needs to include <linux/module.h>
Signed-off-by Moritz Mühlenhoff <muehlenhoff@univention.de>
--- 30-add-blktap-driver.patch.orig 2012-10-04 11:19:26.784050570 +0200
+++ 30-add-blktap-driver.patch 2012-10-04 11:18:51.244048852 +0200
@@ -1571,13 +1571,14 @@
diff -urNp v3.2/linux-3.2/drivers/block/blktap/ring.c linux-3.2/drivers/block/blktap/ring.c
--- v3.2/linux-3.2/drivers/block/blktap/ring.c Wed Dec 31 18:00:00 1969
+++ linux-3.2/drivers/block/blktap/ring.c Mon Apr 9 14:48:24 2012
-@@ -0,0 +1,645 @@
+@@ -0,0 +1,646 @@
+
+#include <linux/device.h>
+#include <linux/signal.h>
+#include <linux/sched.h>
+#include <linux/poll.h>
+#include <linux/blkdev.h>
++#include <linux/module.h>
+
+#include "blktap.h"
+
[-- Attachment #3: fix-blktap-patch2.diff --]
[-- Type: text/x-patch, Size: 867 bytes --]
From: Moritz Mühlenhoff <muehlenhoff@univention.de>
device.c uses THIS_MODULE, so it needs to include <linux/module.h>
Signed-off-by Moritz Mühlenhoff <muehlenhoff@univention.de>
--- 30-add-blktap-driver.patch.orig 2012-10-04 11:18:51.244048852 +0200
+++ 30-add-blktap-driver.patch 2012-10-04 11:56:19.812157693 +0200
@@ -526,12 +526,13 @@
diff -urNp v3.2/linux-3.2/drivers/block/blktap/device.c linux-3.2/drivers/block/blktap/device.c
--- v3.2/linux-3.2/drivers/block/blktap/device.c Wed Dec 31 18:00:00 1969
+++ linux-3.2/drivers/block/blktap/device.c Mon Apr 9 14:48:24 2012
-@@ -0,0 +1,618 @@
+@@ -0,0 +1,619 @@
+#include <linux/fs.h>
+#include <linux/blkdev.h>
+#include <linux/cdrom.h>
+#include <linux/hdreg.h>
+#include <linux/log2.h>
++#include <linux/module.h>
+#include <scsi/scsi.h>
+#include <scsi/scsi_ioctl.h>
+
[-- Attachment #4: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compilation fixes for blktap kernel patch
@ 2012-10-05 23:57 Dr. Greg Wettstein
2012-10-06 19:12 ` Pasi Kärkkäinen
0 siblings, 1 reply; 3+ messages in thread
From: Dr. Greg Wettstein @ 2012-10-05 23:57 UTC (permalink / raw)
To: Moritz Mühlenhoff, xen-devel@lists.xen.org
On Oct 5, 10:31am, Moritz =?iso-8859-1?q?M=FChlenhoff?= wrote:
} Subject: [Xen-devel] Compilation fixes for blktap kernel patch
> Hi,
Hi Moritz, hope your week went well.
> I hope this is the correct mailing list for the blktap patches available at
> ftp://ftp.enjellic.com/pub/xen/ ?
I'm not sure any of the core Xen developers wants to lay claim to
blktap2 in general and these patches in particular.... :-)
I try to keep these patches updated since blktap2 is useful in our
implementations and I wanted to save everyone else what seemed like
endless hours of googling and searching trying to get these facilities
working the way they are supposed to. I'm glad you have found them
useful.
> When integrating the patch into Linux 3.2.30 I noticed two compile errors=20
> related to a missing include of module.h:
>
> /var/build/temp/tmp.TujmUayDmG/3.1-0-0/linux/linux-3.2.30/drivers/block/blk=
> tap/ring.c:536:=20
> error: 'THIS_MODULE' undeclared here (not in a function)
>
> I'm attaching patches against the=20
> ftp://ftp.enjellic.com/pub/xen/blktap2-3.2.patch patch
Thanks for bringing this to my attention. I thought I had that issue
corrected but the 3.2 patches must have escaped those fixes.
In any event I made the needed changes so the patches on the above FTP
site should now drop in without any problems.
> Cheers,
> Moritz
> =2D-=20
> Moritz M=FChlenhoff
> Open Source Software Engineer
Thanks again for the heads up on this.
Good luck with your Xen efforts and have a nice weekend.
Greg
}-- End of excerpt from Moritz =?iso-8859-1?q?M=FChlenhoff?=
As always,
Dr. G.W. Wettstein, Ph.D. Enjellic Systems Development, LLC.
4206 N. 19th Ave. Specializing in information infra-structure
Fargo, ND 58102 development.
PH: 701-281-1686
FAX: 701-281-3949 EMAIL: greg@enjellic.com
------------------------------------------------------------------------------
"Simplicity is prerequisite for reliability."
-- Edsger W. Dijkstra
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compilation fixes for blktap kernel patch
2012-10-05 23:57 Dr. Greg Wettstein
@ 2012-10-06 19:12 ` Pasi Kärkkäinen
0 siblings, 0 replies; 3+ messages in thread
From: Pasi Kärkkäinen @ 2012-10-06 19:12 UTC (permalink / raw)
To: greg; +Cc: Moritz Mühlenhoff, xen-devel@lists.xen.org
On Fri, Oct 05, 2012 at 06:57:06PM -0500, Dr. Greg Wettstein wrote:
> On Oct 5, 10:31am, Moritz =?iso-8859-1?q?M=FChlenhoff?= wrote:
> } Subject: [Xen-devel] Compilation fixes for blktap kernel patch
>
> > Hi,
>
> Hi Moritz, hope your week went well.
>
> > I hope this is the correct mailing list for the blktap patches available at
> > ftp://ftp.enjellic.com/pub/xen/ ?
>
> I'm not sure any of the core Xen developers wants to lay claim to
> blktap2 in general and these patches in particular.... :-)
>
Please submit your patches for inclusion in Xen upstream!
We've been trying to ask for this in the other thread :)
> I try to keep these patches updated since blktap2 is useful in our
> implementations and I wanted to save everyone else what seemed like
> endless hours of googling and searching trying to get these facilities
> working the way they are supposed to. I'm glad you have found them
> useful.
>
Yes, that's good, and let's get the patches merged to upstream Xen!
-- Pasi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-06 19:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05 8:31 Compilation fixes for blktap kernel patch Moritz Mühlenhoff
-- strict thread matches above, loose matches on Subject: below --
2012-10-05 23:57 Dr. Greg Wettstein
2012-10-06 19:12 ` Pasi Kärkkäinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).