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: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191108051356.29980-1-yamada.masahiro@socionext.com
This commit is contained in:
Masahiro Yamada 2019-11-08 14:13:55 +09:00 committed by Chris Wilson
parent 5e19c0b062
commit 080f128848
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}