drm/panfrost: Remove set but not used variable 'bo'
[linux/fpc-iii.git] / include / xen / arm / page-coherent.h
blobb9cc11e887ed5b7b9a3d0b2abdeba4d61cb8f073
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _XEN_ARM_PAGE_COHERENT_H
3 #define _XEN_ARM_PAGE_COHERENT_H
5 #include <linux/dma-mapping.h>
6 #include <asm/page.h>
8 static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size,
9 dma_addr_t *dma_handle, gfp_t flags, unsigned long attrs)
11 return dma_direct_alloc(hwdev, size, dma_handle, flags, attrs);
14 static inline void xen_free_coherent_pages(struct device *hwdev, size_t size,
15 void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs)
17 dma_direct_free(hwdev, size, cpu_addr, dma_handle, attrs);
20 #endif /* _XEN_ARM_PAGE_COHERENT_H */