diff --git a/drivers/staging/android/ion/ion_dma_buf.c b/drivers/staging/android/ion/ion_dma_buf.c index 9cb38d519c10..284abb58a719 100644 --- a/drivers/staging/android/ion/ion_dma_buf.c +++ b/drivers/staging/android/ion/ion_dma_buf.c @@ -45,12 +45,6 @@ static void free_duped_table(struct sg_table *table) kfree(table); } -struct ion_dma_buf_attachment { - struct device *dev; - struct sg_table *table; - struct list_head list; -}; - static int ion_dma_buf_attach(struct dma_buf *dmabuf, struct dma_buf_attachment *attachment) { diff --git a/include/linux/ion.h b/include/linux/ion.h index fa86bcce6e8f..088705119b16 100644 --- a/include/linux/ion.h +++ b/include/linux/ion.h @@ -144,6 +144,18 @@ struct ion_heap { #define ion_device_add_heap(heap) __ion_device_add_heap(heap, THIS_MODULE) +/** + * struct ion_dma_buf_attachment - hold device-table attachment data for buffer + * @dev: device attached to the buffer. + * @table: cached mapping. + * @list: list of ion_dma_buf_attachment. + */ +struct ion_dma_buf_attachment { + struct device *dev; + struct sg_table *table; + struct list_head list; +}; + #ifdef CONFIG_ION /**