Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gem / selftests / mock_dmabuf.h
blob22818bbb139d54a4247577601587a759523a4976
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2016 Intel Corporation
5 */
7 #ifndef __MOCK_DMABUF_H__
8 #define __MOCK_DMABUF_H__
10 #include <linux/dma-buf.h>
12 struct mock_dmabuf {
13 int npages;
14 struct page *pages[];
17 static inline struct mock_dmabuf *to_mock(struct dma_buf *buf)
19 return buf->priv;
22 #endif /* !__MOCK_DMABUF_H__ */