[PATCH 6/6] swiotlb: EXPORT_SYMBOL_GPL functions + variables that are defined in the header file.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Konrad Rzeszutek Wilk
Date: Tuesday, May 11, 2010 - 8:39 am

Make the functions and variables that are now declared in the
swiotlb.h header file visible by the linker.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 lib/swiotlb.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/swiotlb.c b/lib/swiotlb.c
index dc1776c..986742c 100644
--- a/lib/swiotlb.c
+++ b/lib/swiotlb.c
@@ -364,6 +364,7 @@ void swiotlb_bounce(phys_addr_t phys, char *dma_addr, size_t size,
 			memcpy(phys_to_virt(phys), dma_addr, size);
 	}
 }
+EXPORT_SYMBOL_GPL(swiotlb_bounce);
 
 void *swiotlb_tbl_map_single(struct device *hwdev, u64 tbl_dma_addr,
 			     phys_addr_t phys, size_t size,
@@ -468,6 +469,7 @@ found:
 
 	return dma_addr;
 }
+EXPORT_SYMBOL_GPL(swiotlb_tbl_map_single);
 
 /*
  * Allocates bounce buffer and returns its kernel virtual address.
@@ -525,6 +527,7 @@ swiotlb_tbl_unmap_single(struct device *hwdev, char *dma_addr, size_t size,
 	}
 	spin_unlock_irqrestore(&io_tlb_lock, flags);
 }
+EXPORT_SYMBOL_GPL(swiotlb_tbl_unmap_single);
 
 void
 swiotlb_tbl_sync_single(struct device *hwdev, char *dma_addr, size_t size,
@@ -553,6 +556,7 @@ swiotlb_tbl_sync_single(struct device *hwdev, char *dma_addr, size_t size,
 		BUG();
 	}
 }
+EXPORT_SYMBOL_GPL(swiotlb_tbl_sync_single);
 
 void *
 swiotlb_alloc_coherent(struct device *hwdev, size_t size,
-- 
1.6.2.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 5/6] swiotlb: Make swiotlb bookkeeping functions vi ..., Konrad Rzeszutek Wilk, (Tue May 11, 8:39 am)
[PATCH 6/6] swiotlb: EXPORT_SYMBOL_GPL functions + variabl ..., Konrad Rzeszutek Wilk, (Tue May 11, 8:39 am)
Re: [PATCH 5/6] swiotlb: Make swiotlb bookkeeping function ..., Jeremy Fitzhardinge, (Tue May 11, 11:36 am)
Re: [PATCH 5/6] swiotlb: Make swiotlb bookkeeping function ..., Konrad Rzeszutek Wilk, (Tue May 11, 11:46 am)
Re: [PATCH 5/6] swiotlb: Make swiotlb bookkeeping function ..., Konrad Rzeszutek Wilk, (Tue May 11, 12:39 pm)
Re: [PATCH 5/6] swiotlb: Make swiotlb bookkeeping function ..., Russell King - ARM Linux, (Wed May 19, 12:10 am)