| Date | Tue, 10 Nov 2009 12:27:50 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH -v2 7/9] swiotlb: add swiotlb_free function |
| |
this patch needed the fix below, for the !CONFIG_SWIOTLB case.
Ingo
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 6b70068..eb9bdb4 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -87,6 +87,11 @@ swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr); extern int swiotlb_dma_supported(struct device *hwdev, u64 mask); +#ifdef CONFIG_SWIOTLB extern void __init swiotlb_free(void); +#else +static inline void swiotlb_free(void) { } +#endif + extern void swiotlb_print_info(void); #endif /* __LINUX_SWIOTLB_H */
|