|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 04 of 12] blktap2: allow to build as module
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1244107954 -3600
# Node ID e6bffb2fc52314d542721c60c65cbb2a7779b4c9
# Parent 4a90fb4644ef8e95cea9e21609b76bd8ce4b4393
blktap2: allow to build as module
... and also allow to interact with blkback when that's also built as
a module.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
linux-2.6-pvops:
* Strip n/a xen_tlb_flush exports
* Fix obj macro naming in Makefile
* gpl-export init_mm
* gpl-export zap_page_range
Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
diff -r 4a90fb4644ef -r e6bffb2fc523 drivers/xen/blktap/Makefile
--- a/drivers/xen/blktap/Makefile Fri May 29 09:16:37 2009 +0100
+++ b/drivers/xen/blktap/Makefile Thu Jun 04 10:32:34 2009 +0100
@@ -1,3 +1,3 @@
-obj-y := blktap.o
+obj-$(CONFIG_XEN_BLKDEV_TAP) := blktap.o
blktap-objs := control.o ring.o wait_queue.o device.o request.o sysfs.o
diff -r 4a90fb4644ef -r e6bffb2fc523 drivers/xen/blktap/device.c
--- a/drivers/xen/blktap/device.c Fri May 29 09:16:37 2009 +0100
+++ b/drivers/xen/blktap/device.c Thu Jun 04 10:32:34 2009 +0100
@@ -17,7 +17,8 @@
#include "blktap.h"
-#ifdef CONFIG_XEN_BLKDEV_BACKEND
+#if defined(CONFIG_XEN_BLKDEV_BACKEND) || \
+ (defined(CONFIG_XEN_BLKDEV_BACKEND_MODULE) && defined(MODULE))
#include "../blkback/blkback-pagemap.h"
#else
struct blkback_pagemap { };
diff -r 4a90fb4644ef -r e6bffb2fc523 mm/init-mm.c
--- a/mm/init-mm.c Fri May 29 09:16:37 2009 +0100
+++ b/mm/init-mm.c Thu Jun 04 10:32:34 2009 +0100
@@ -4,6 +4,7 @@
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/cpumask.h>
+#include <linux/module.h>
#include <asm/atomic.h>
#include <asm/pgtable.h>
@@ -18,3 +19,4 @@
.mmlist = LIST_HEAD_INIT(init_mm.mmlist),
.cpu_vm_mask = CPU_MASK_ALL,
};
+EXPORT_SYMBOL_GPL(init_mm);
diff -r 4a90fb4644ef -r e6bffb2fc523 mm/memory.c
--- a/mm/memory.c Fri May 29 09:16:37 2009 +0100
+++ b/mm/memory.c Thu Jun 04 10:32:34 2009 +0100
@@ -1075,6 +1075,7 @@
tlb_finish_mmu(tlb, address, end);
return end;
}
+EXPORT_SYMBOL_GPL(zap_page_range);
/**
* zap_vma_ptes - remove ptes mapping the vma
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 12] blktap2 on pvops update/merges, Daniel Stodden
- [Xen-devel] [PATCH 04 of 12] blktap2: allow to build as module,
Daniel Stodden <=
- [Xen-devel] [PATCH 03 of 12] blktap2: fix compiler warnings, Daniel Stodden
- [Xen-devel] [PATCH 02 of 12] blktap2: add tlb flush properly, Daniel Stodden
- [Xen-devel] [PATCH 01 of 12] Fix x86_32 build after CONFIG_X86_VSYSCALL (c3a1cb06), Daniel Stodden
- [Xen-devel] [PATCH 12 of 12] blkback: simplify linux-2.6.18-xen.hg-918.71a61b393cdf, Daniel Stodden
- [Xen-devel] [PATCH 08 of 12] blktap2: remove warnings, Daniel Stodden
- [Xen-devel] [PATCH 09 of 12] blkback: pagemap bug fixes, Daniel Stodden
- [Xen-devel] [PATCH 11 of 12] blkback/blktap2: simplify address translations, Daniel Stodden
- [Xen-devel] [PATCH 07 of 12] blktap2: use blk_rq_map_sg() here too, Daniel Stodden
- [Xen-devel] [PATCH 05 of 12] blktap2: reduce TLB flush scope, Daniel Stodden
- [Xen-devel] [PATCH 06 of 12] blktap2: fix blkback/blktap2 interaction, Daniel Stodden
|
|
|
|
|