Skip to content
Commit 4a43f394 authored by Jon Mason's avatar Jon Mason Committed by Dan Williams
Browse files

dmaengine: dma_sync_wait and dma_find_channel undefined



dma_sync_wait and dma_find_channel are declared regardless of whether
CONFIG_DMA_ENGINE is enabled, but calling the function without
CONFIG_DMA_ENGINE enabled results "undefined reference" errors.

To get around this, declare dma_sync_wait and dma_find_channel as inline
functions if CONFIG_DMA_ENGINE is undefined.

Signed-off-by: default avatarJon Mason <jon.mason@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent ab5f8c6e
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