Skip to contentSkip to conversation

linux/blktap2: allow to build as module

PATCH New Jan Beulich 1 participant 1 message Jun 3, 2009 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/blktap2: allow to build as module

... and also allow to interact with blkback when that's also built as a module.

arch/i386/mm/hypervisor.c +2 -0
@@ -122,6 +122,7 @@ void xen_tlb_flush_all(void)
 	op.cmd = MMUEXT_TLB_FLUSH_ALL;
 	BUG_ON(HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF) < 0);
 }
+EXPORT_SYMBOL_GPL(xen_tlb_flush_all);
 
 void xen_tlb_flush_mask(cpumask_t *mask)
 {
@@ -132,6 +133,7 @@ void xen_tlb_flush_mask(const cpumask_t 
 	set_xen_guest_handle(op.arg2.vcpumask, mask->bits);
 	BUG_ON(HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF) < 0);
 }
+EXPORT_SYMBOL_GPL(xen_tlb_flush_mask);
 
 void xen_invlpg_all(unsigned long ptr)
 {
drivers/xen/blktap2/device.c +2 -1
@@ -14,7 +14,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 { };