From ddd86436f4e3643c04b797f858dab95d5f2e4de9 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Dec 2015 15:00:15 +0000 Subject: fish --- backport-include/asm-generic/pci-dma-compat.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 backport-include/asm-generic/pci-dma-compat.h (limited to 'backport-include/asm-generic/pci-dma-compat.h') diff --git a/backport-include/asm-generic/pci-dma-compat.h b/backport-include/asm-generic/pci-dma-compat.h new file mode 100644 index 0000000..aa61f4d --- /dev/null +++ b/backport-include/asm-generic/pci-dma-compat.h @@ -0,0 +1,17 @@ +#ifndef __BACKPORT_ASM_PCI_DMA_COMPAT_H +#define __BACKPORT_ASM_PCI_DMA_COMPAT_H +#include_next +#include + + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) +#include + +#define pci_dma_mapping_error1(dma_addr) dma_mapping_error1(dma_addr) +#define pci_dma_mapping_error2(pdev, dma_addr) dma_mapping_error2(pdev, dma_addr) +#undef pci_dma_mapping_error +#define pci_dma_mapping_error(...) \ + macro_dispatcher(pci_dma_mapping_error, __VA_ARGS__)(__VA_ARGS__) +#endif + +#endif /* __BACKPORT_ASM_PCI_DMA_COMPAT_H */ -- cgit v1.2.3