Revert "FROMLIST: dma-buf: add support for virtio exported objects"
This reverts commit 0787bdf576.
No AOSP user and hasn't been exported since android11-5.4.
Cc: David Stevens <stevensd@chromium.org>
Suggested-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I19eaa27d3c9cfdad1f8b47ff559632034c660b60
This commit is contained in:
@@ -1399,18 +1399,6 @@ int dma_buf_get_flags(struct dma_buf *dmabuf, unsigned long *flags)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(dma_buf_get_flags);
|
EXPORT_SYMBOL_GPL(dma_buf_get_flags);
|
||||||
|
|
||||||
int dma_buf_get_uuid(struct dma_buf *dmabuf, uuid_t *uuid)
|
|
||||||
{
|
|
||||||
if (WARN_ON(!dmabuf) || !uuid)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
if (!dmabuf->ops->get_uuid)
|
|
||||||
return -ENODEV;
|
|
||||||
|
|
||||||
return dmabuf->ops->get_uuid(dmabuf, uuid);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(dma_buf_get_uuid);
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
static int dma_buf_debug_show(struct seq_file *s, void *unused)
|
static int dma_buf_debug_show(struct seq_file *s, void *unused)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -328,21 +328,6 @@ struct dma_buf_ops {
|
|||||||
int (*vmap)(struct dma_buf *dmabuf, struct dma_buf_map *map);
|
int (*vmap)(struct dma_buf *dmabuf, struct dma_buf_map *map);
|
||||||
void (*vunmap)(struct dma_buf *dmabuf, struct dma_buf_map *map);
|
void (*vunmap)(struct dma_buf *dmabuf, struct dma_buf_map *map);
|
||||||
|
|
||||||
/**
|
|
||||||
* @get_uuid
|
|
||||||
*
|
|
||||||
* This is called by dma_buf_get_uuid to get the UUID which identifies
|
|
||||||
* the buffer to virtio devices.
|
|
||||||
*
|
|
||||||
* This callback is optional.
|
|
||||||
*
|
|
||||||
* Returns:
|
|
||||||
*
|
|
||||||
* 0 on success or a negative error code on failure. On success uuid
|
|
||||||
* will be populated with the buffer's UUID.
|
|
||||||
*/
|
|
||||||
int (*get_uuid)(struct dma_buf *dmabuf, uuid_t *uuid);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @get_flags:
|
* @get_flags:
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user