All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libdrm] freedreno: add dummy fd_bo_from_fbdev implementation when KGSL is disabled
@ 2016-04-11 14:50 Nicolas Dechesne
  0 siblings, 0 replies; only message in thread
From: Nicolas Dechesne @ 2016-04-11 14:50 UTC (permalink / raw)
  To: dri-devel; +Cc: freedreno, Khem Raj

Make sure that this function is defined (even empty/dummy) when KGSL support is
disabled, since it's part of the driver i/f and it was reported to cause symbols
issues when building against musl libc implementation.

Reported-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
---
 freedreno/freedreno_bo.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c
index a23c65d..82c1f15 100644
--- a/freedreno/freedreno_bo.c
+++ b/freedreno/freedreno_bo.c
@@ -431,3 +431,10 @@ void fd_bo_cpu_fini(struct fd_bo *bo)
 {
 	bo->funcs->cpu_fini(bo);
 }
+
+#ifndef HAVE_FREEDRENO_KGSL
+struct fd_bo * fd_bo_from_fbdev(struct fd_pipe *pipe, int fbfd, uint32_t size)
+{
+    return NULL;
+}
+#endif
-- 
2.8.0.rc3

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-11 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-11 14:50 [PATCH libdrm] freedreno: add dummy fd_bo_from_fbdev implementation when KGSL is disabled Nicolas Dechesne

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.