Commit 31400932 authored by James Bottomley's avatar James Bottomley Committed by James Bottomley

Fix incorrect prototype in the dma_declare_coherent_memory API

dma_mark_declared_memory_occupied() wasn't declared static inline in the NULL (default)
implementation leading to compile failures.
parent 1061dd1f
......@@ -61,8 +61,9 @@ dma_release_declared_memory(struct device *dev)
{
}
void *dma_mark_declared_memory_occupied(struct device *dev,
dma_addr_t device_addr, size_t size)
static inline void *
dma_mark_declared_memory_occupied(struct device *dev,
dma_addr_t device_addr, size_t size)
{
return ERR_PTR(-EBUSY);
}
......
Markdown is supported
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