Commit 080f1288 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Chris Wilson

drm/i915: change to_mock() to an inline function

Since this function is defined in a header file, it should be
'static inline' instead of 'static'.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191108051356.29980-1-yamada.masahiro@socionext.com
parent 5e19c0b0
......@@ -14,7 +14,7 @@ struct mock_dmabuf {
struct page *pages[];
};
static struct mock_dmabuf *to_mock(struct dma_buf *buf)
static inline struct mock_dmabuf *to_mock(struct dma_buf *buf)
{
return buf->priv;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment