Thread (11 messages) read the whole thread 11 messages, 4 authors, 2021-10-27

Re: gpu: drm_fb_cma_helper.c:46: undefined reference to `drm_gem_fb_get_obj'

From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-10-27 06:51:17
Also in: dri-devel, linux-next, lkml

On Wed, Oct 27, 2021 at 8:26 AM Randy Dunlap [off-list ref] wrote:
On 10/26/21 11:19 PM, Arnd Bergmann wrote:
quoted
On Wed, Oct 27, 2021 at 2:58 AM Randy Dunlap [off-list ref] wrote:
quoted
This trivial change makes it all build:
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index c08860db2520..699f434ce813 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -218,7 +218,7 @@ config DRM_GEM_CMA_HELPER
           Choose this if you need the GEM CMA helper functions

  config
quoted
-       bool
+       tristate
         depends on DRM
         select DRM_GEM_CMA_HELPER
         help

but this needs some more testing to make sure it doesn't add
any other regressions.

Interestingly, I never hit the problem in randconfig testing since
there is always some '=y' driver that selects DRM_KMS_HELPER.
Thomas had posted a patch that also fixes the problem.
Somehow I missed seeing that the first time around.
Ah right, I missed that as well. That patch seems reasonable
to me, but I think we may want both of them in this case, as
it does not address DRM_GEM_CMA_HELPER being set to =y
when it is only used from modules.

       Arnd

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help