mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
dma-buf: export the function set release callback
Fix if CONFIG_DRM_ROCKCHIP config module compile. ERROR: "dma_buf_set_release_callback" [drivers/gpu/drm/rockchip/rockchipdrm.ko] undefined! ERROR: "dma_buf_get_release_callback_data" [drivers/gpu/drm/rockchip/rockchipdrm.ko] undefined! Signed-off-by: Weiwen Chen <cww@rock-chips.com> Change-Id: Ic2de2b500990b6a818a976ffb87e538bb0cb9f11
This commit is contained in:
@@ -523,6 +523,7 @@ void *dma_buf_get_release_callback_data(struct dma_buf *dmabuf,
|
||||
|
||||
return result;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dma_buf_get_release_callback_data);
|
||||
|
||||
int dma_buf_set_release_callback(struct dma_buf *dmabuf,
|
||||
void (*callback)(void *), void *data)
|
||||
@@ -544,6 +545,7 @@ int dma_buf_set_release_callback(struct dma_buf *dmabuf,
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dma_buf_set_release_callback);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user