diff options
-rw-r--r-- | drivers/base/dma-buf.c | 2 | ||||
-rw-r--r-- | include/linux/dma-buf.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index e38ad243b4bb..965833acf0d2 100644 --- a/drivers/base/dma-buf.c +++ b/drivers/base/dma-buf.c | |||
@@ -71,7 +71,7 @@ static inline int is_dma_buf_file(struct file *file) | |||
71 | * ops, or error in allocating struct dma_buf, will return negative error. | 71 | * ops, or error in allocating struct dma_buf, will return negative error. |
72 | * | 72 | * |
73 | */ | 73 | */ |
74 | struct dma_buf *dma_buf_export(void *priv, struct dma_buf_ops *ops, | 74 | struct dma_buf *dma_buf_export(void *priv, const struct dma_buf_ops *ops, |
75 | size_t size, int flags) | 75 | size_t size, int flags) |
76 | { | 76 | { |
77 | struct dma_buf *dmabuf; | 77 | struct dma_buf *dmabuf; |
diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index f8ac076afa52..86f624141048 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h | |||
@@ -114,8 +114,8 @@ struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf, | |||
114 | struct device *dev); | 114 | struct device *dev); |
115 | void dma_buf_detach(struct dma_buf *dmabuf, | 115 | void dma_buf_detach(struct dma_buf *dmabuf, |
116 | struct dma_buf_attachment *dmabuf_attach); | 116 | struct dma_buf_attachment *dmabuf_attach); |
117 | struct dma_buf *dma_buf_export(void *priv, struct dma_buf_ops *ops, | 117 | struct dma_buf *dma_buf_export(void *priv, const struct dma_buf_ops *ops, |
118 | size_t size, int flags); | 118 | size_t size, int flags); |
119 | int dma_buf_fd(struct dma_buf *dmabuf); | 119 | int dma_buf_fd(struct dma_buf *dmabuf); |
120 | struct dma_buf *dma_buf_get(int fd); | 120 | struct dma_buf *dma_buf_get(int fd); |
121 | void dma_buf_put(struct dma_buf *dmabuf); | 121 | void dma_buf_put(struct dma_buf *dmabuf); |
@@ -138,8 +138,8 @@ static inline void dma_buf_detach(struct dma_buf *dmabuf, | |||
138 | } | 138 | } |
139 | 139 | ||
140 | static inline struct dma_buf *dma_buf_export(void *priv, | 140 | static inline struct dma_buf *dma_buf_export(void *priv, |
141 | struct dma_buf_ops *ops, | 141 | const struct dma_buf_ops *ops, |
142 | size_t size, int flags) | 142 | size_t size, int flags) |
143 | { | 143 | { |
144 | return ERR_PTR(-ENODEV); | 144 | return ERR_PTR(-ENODEV); |
145 | } | 145 | } |