// SPDX-License-Identifier: GPL-2.0-only
 #include <linux/cpu.h>
-#include <linux/dma-mapping.h>
+#include <linux/dma-noncoherent.h>
 #include <linux/gfp.h>
 #include <linux/highmem.h>
 #include <linux/export.h>
             dma_addr_t dev_addr, unsigned long offset, size_t size,
             enum dma_data_direction dir, unsigned long attrs)
 {
-       if (is_device_dma_coherent(hwdev))
+       if (dev_is_dma_coherent(hwdev))
                return;
        if (attrs & DMA_ATTR_SKIP_CPU_SYNC)
                return;
                unsigned long attrs)
 
 {
-       if (is_device_dma_coherent(hwdev))
+       if (dev_is_dma_coherent(hwdev))
                return;
        if (attrs & DMA_ATTR_SKIP_CPU_SYNC)
                return;
 void __xen_dma_sync_single_for_cpu(struct device *hwdev,
                dma_addr_t handle, size_t size, enum dma_data_direction dir)
 {
-       if (is_device_dma_coherent(hwdev))
+       if (dev_is_dma_coherent(hwdev))
                return;
        __xen_dma_page_dev_to_cpu(hwdev, handle, size, dir);
 }
 void __xen_dma_sync_single_for_device(struct device *hwdev,
                dma_addr_t handle, size_t size, enum dma_data_direction dir)
 {
-       if (is_device_dma_coherent(hwdev))
+       if (dev_is_dma_coherent(hwdev))
                return;
        __xen_dma_page_cpu_to_dev(hwdev, handle, size, dir);
 }
         * memory and we are not able to flush the cache.
         */
        return (!hypercall_cflush && (xen_pfn != bfn) &&
-               !is_device_dma_coherent(dev));
+               !dev_is_dma_coherent(dev));
 }
 
 int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,