xen/arm: Fix compile errors when drivers are compiled as modules.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 6 Nov 2012 22:06:52 +0000 (17:06 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 7 Nov 2012 15:46:19 +0000 (10:46 -0500)
We end up with:

ERROR: "HYPERVISOR_event_channel_op" [drivers/xen/xen-gntdev.ko] undefined!
ERROR: "privcmd_call" [drivers/xen/xen-privcmd.ko] undefined!
ERROR: "HYPERVISOR_grant_table_op" [drivers/net/xen-netback/xen-netback.ko] undefined!

and this patch exports said function (which is implemented in hypercall.S).

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/arm/xen/enlighten.c

index 59bcb96ac3692446989501f363301daa81674d5b..96d969da533599c1e612ec06c1a3bb032bd4435a 100644 (file)
@@ -166,3 +166,8 @@ void free_xenballooned_pages(int nr_pages, struct page **pages)
        *pages = NULL;
 }
 EXPORT_SYMBOL_GPL(free_xenballooned_pages);
+
+/* In the hypervisor.S file. */
+EXPORT_SYMBOL_GPL(HYPERVISOR_event_channel_op);
+EXPORT_SYMBOL_GPL(HYPERVISOR_grant_table_op);
+EXPORT_SYMBOL_GPL(privcmd_call);