ANDROID: dma-buf: Export is_dma_buf_file

Export is_dma_buf_file function which will be used
by the minidump module to get dmabuf info.

Bug: 331885755
Bug: 199236943
Change-Id: Ic8f7dd4f0a620839ab19f52841e9a6541515133c
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
(cherry picked from commit 274b5bcb64daa03165724eca243f4fe2040315e1)
This commit is contained in:
Vijayanand Jitta
2021-02-23 12:35:35 +05:30
committed by Treehugger Robot
parent 06cb03bf39
commit 1167ff4e85
2 changed files with 3 additions and 3 deletions
+2 -3
View File
@@ -33,8 +33,6 @@
#include "dma-buf-sysfs-stats.h"
static inline int is_dma_buf_file(struct file *);
#if IS_ENABLED(CONFIG_DEBUG_FS)
static DEFINE_MUTEX(debugfs_list_mutex);
static LIST_HEAD(debugfs_list);
@@ -552,10 +550,11 @@ static const struct file_operations dma_buf_fops = {
/*
* is_dma_buf_file - Check if struct file* is associated with dma_buf
*/
static inline int is_dma_buf_file(struct file *file)
int is_dma_buf_file(struct file *file)
{
return file->f_op == &dma_buf_fops;
}
EXPORT_SYMBOL_NS_GPL(is_dma_buf_file, DMA_BUF);
static struct file *dma_buf_getfile(size_t size, int flags)
{
+1
View File
@@ -680,6 +680,7 @@ dma_buf_attachment_is_dynamic(struct dma_buf_attachment *attach)
return !!attach->importer_ops;
}
int is_dma_buf_file(struct file *file);
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
struct device *dev);
struct dma_buf_attachment *