Skip to contentSkip to conversation

Compilation fixes for blktap kernel patch

PATCH Moritz Mühlenhoff 1 participant 1 message Oct 5, 2012

lore
Share & tools
lore
#0 lore raw

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

Signature · 16 lines
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

[email protected]
http://www.univention.de

Geschäftsführer: Peter H. Ganten
HRB 20755 Amtsgericht Bremen
Steuer-Nr.: 71-597-02876 

From: Moritz Mühlenhoff <[email protected]>

ring.c uses THIS_MODULE, so it needs to include <linux/module.h>

Signed-off-by Moritz Mühlenhoff <[email protected]>

30-add-blktap-driver.patch renamed from 30-add-blktap-driver.patch.orig +2 -1
@@ -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"
 +

From: Moritz Mühlenhoff <[email protected]>

device.c uses THIS_MODULE, so it needs to include <linux/module.h>

Signed-off-by Moritz Mühlenhoff <[email protected]>

30-add-blktap-driver.patch renamed from 30-add-blktap-driver.patch.orig +2 -1
@@ -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>
 +

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel