Commit ef639a11 authored by Vikram Narayanan's avatar Vikram Narayanan
Browse files

liblcd: Add missing header

parent 9bd62ce8
#define _dma_map_single(d, a, s, r) _dma_map_single_attrs(d, a, s, r, 0)
static inline dma_addr_t _dma_map_single_attrs(struct device *dev, void *ptr,
size_t size,
enum dma_data_direction dir,
unsigned long attrs)
struct dma_map_ops *ops = get_dma_ops(dev);
dma_addr_t addr;
kmemcheck_mark_initialized(ptr, size);
addr = ops->map_page(dev, virt_to_page(ptr),
offset_in_page(ptr), size,
dir, attrs);
debug_dma_map_page(dev, virt_to_page(ptr),
offset_in_page(ptr), size,
dir, addr, true);
return addr;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment