]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: Relax licensing of arm64 Xen DMA operations
authorChuck Tuffli <chuck.tuffli@emulex.com>
Sun, 21 Dec 2014 20:30:58 +0000 (12:30 -0800)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 20 Jan 2015 18:44:23 +0000 (18:44 +0000)
With Xen configured into the arm64 kernel, any driver allocating
DMA'able memory for PCI operations, must be GPL compatible, regardless
of its interaction with Xen. This patch relaxes the GPL requirement of
xen_dma_ops and its dependencies to allow open source drivers to be
compiled for the arm64 architecture.

Signed-off-by: Chuck Tuffli <chuck.tuffli@emulex.com>
arch/arm/xen/enlighten.c
arch/arm/xen/mm.c

index c7ca936ebd998965a3b76a6e9be2836357083b22..263a2044c65bdb2751c63726f74637935489080f 100644 (file)
 
 struct start_info _xen_start_info;
 struct start_info *xen_start_info = &_xen_start_info;
-EXPORT_SYMBOL_GPL(xen_start_info);
+EXPORT_SYMBOL(xen_start_info);
 
 enum xen_domain_type xen_domain_type = XEN_NATIVE;
-EXPORT_SYMBOL_GPL(xen_domain_type);
+EXPORT_SYMBOL(xen_domain_type);
 
 struct shared_info xen_dummy_shared_info;
 struct shared_info *HYPERVISOR_shared_info = (void *)&xen_dummy_shared_info;
index 351b24a979d44c9d3a8571a85629504ed602f442..793551d15f1dac1a1241b23971a788b4c36702b6 100644 (file)
@@ -149,7 +149,7 @@ void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order)
 EXPORT_SYMBOL_GPL(xen_destroy_contiguous_region);
 
 struct dma_map_ops *xen_dma_ops;
-EXPORT_SYMBOL_GPL(xen_dma_ops);
+EXPORT_SYMBOL(xen_dma_ops);
 
 static struct dma_map_ops xen_swiotlb_dma_ops = {
        .mapping_error = xen_swiotlb_dma_mapping_error,