ion : Merge ion changes for msm-kona kernel upgrade
Merge all ion changes from msm-4.14 to msm-kona as of:
'commit 0fa34f5d9070 ("ion: fix system secure force alloc")'.
Change-Id: I040b44a89790f7096bf11c5b273ad0e5033eea9c
Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org>
This commit is contained in:
committed by
Patrick Daly
parent
72c6f5f101
commit
ac04f0739d
29
include/linux/dma-buf-ref.h
Normal file
29
include/linux/dma-buf-ref.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _DMA_BUF_REF_H
|
||||
#define _DMA_BUF_REF_H
|
||||
|
||||
struct dma_buf;
|
||||
struct seq_file;
|
||||
|
||||
#ifdef CONFIG_DEBUG_DMA_BUF_REF
|
||||
void dma_buf_ref_init(struct dma_buf *b);
|
||||
void dma_buf_ref_destroy(struct dma_buf *b);
|
||||
void dma_buf_ref_mod(struct dma_buf *b, int nr);
|
||||
int dma_buf_ref_show(struct seq_file *s, struct dma_buf *dmabuf);
|
||||
|
||||
#else
|
||||
static inline void dma_buf_ref_init(struct dma_buf *b) {}
|
||||
static inline void dma_buf_ref_destroy(struct dma_buf *b) {}
|
||||
static inline void dma_buf_ref_mod(struct dma_buf *b, int nr) {}
|
||||
static inline int dma_buf_ref_show(struct seq_file *s, struct dma_buf *dmabuf)
|
||||
{
|
||||
return -ENOMEM;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _DMA_BUF_REF_H */
|
||||
Reference in New Issue
Block a user