io_uring: fix an issue when IOSQE_IO_LINK is inserted into defer list
[sfrench/cifs-2.6.git] / arch / powerpc / kernel / dma-common.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Contains common dma routines for all powerpc platforms.
4  *
5  * Copyright (C) 2019 Shawn Anastasio.
6  */
7
8 #include <linux/mm.h>
9 #include <linux/dma-noncoherent.h>
10
11 pgprot_t arch_dma_mmap_pgprot(struct device *dev, pgprot_t prot,
12                 unsigned long attrs)
13 {
14         if (!dev_is_dma_coherent(dev))
15                 return pgprot_noncached(prot);
16         return prot;
17 }