|
@@ -45,12 +45,14 @@ extern int swiotlb_force;
|
|
|
|
|
|
#ifdef CONFIG_SWIOTLB
|
|
#ifdef CONFIG_SWIOTLB
|
|
extern int swiotlb;
|
|
extern int swiotlb;
|
|
|
|
+extern void pci_swiotlb_init(void);
|
|
#else
|
|
#else
|
|
#define swiotlb 0
|
|
#define swiotlb 0
|
|
|
|
+static inline void pci_swiotlb_init(void)
|
|
|
|
+{
|
|
|
|
+}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-extern void pci_swiotlb_init(void);
|
|
|
|
-
|
|
|
|
static inline void dma_mark_clean(void *addr, size_t size) {}
|
|
static inline void dma_mark_clean(void *addr, size_t size) {}
|
|
|
|
|
|
#endif /* _ASM_SWIOTLB_H */
|
|
#endif /* _ASM_SWIOTLB_H */
|