All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: change to_mock() to an inline function
@ 2019-11-08  5:13 ` Masahiro Yamada
  0 siblings, 0 replies; 18+ messages in thread
From: Masahiro Yamada @ 2019-11-08  5:13 UTC (permalink / raw)
  To: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, intel-gfx
  Cc: Masahiro Yamada, Chris Wilson, Daniel Vetter, David Airlie,
	Mika Kuoppala, dri-devel, linux-kernel

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>
---

 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.h b/drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.h
index f0f8bbd82dfc..22818bbb139d 100644
--- a/drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.h
+++ b/drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.h
@@ -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;
 }
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-11-08  9:12 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08  5:13 [PATCH 1/2] drm/i915: change to_mock() to an inline function Masahiro Yamada
2019-11-08  5:13 ` [Intel-gfx] " Masahiro Yamada
2019-11-08  5:13 ` Masahiro Yamada
2019-11-08  5:13 ` [PATCH 2/2] drm/i915: make more headers self-contained Masahiro Yamada
2019-11-08  5:13   ` [Intel-gfx] " Masahiro Yamada
2019-11-08  5:13   ` Masahiro Yamada
2019-11-08  5:42   ` Masahiro Yamada
2019-11-08  5:42     ` [Intel-gfx] " Masahiro Yamada
2019-11-08  5:42     ` Masahiro Yamada
2019-11-08  8:16     ` Chris Wilson
2019-11-08  8:16       ` [Intel-gfx] " Chris Wilson
2019-11-08  8:16       ` Chris Wilson
2019-11-08  5:34 ` ✗ Fi.CI.BUILD: failure for series starting with [1/2] drm/i915: change to_mock() to an inline function Patchwork
2019-11-08  5:34   ` [Intel-gfx] " Patchwork
2019-11-08  9:12 ` [PATCH 1/2] " Chris Wilson
2019-11-08  9:12   ` [Intel-gfx] " Chris Wilson
2019-11-08  9:12   ` Chris Wilson
2019-11-08  9:12   ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.