Skip to contentSkip to conversation

drm: include <drm/drm_fb_cma_helper.h> for missing declarations

PATCH New Ben Dooks 1 participant 1 message Oct 15, 2019

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 drm: include <drm/drm_fb_cma_helper.h> for missing declarations

Include <drm/drm_fb_cma_helper.h> to get the definitions of drm_fb_cma_get_gem_{addr,obj} functions to fix the following sparse warnings:

drivers/gpu/drm/drm_fb_cma_helper.c:38:27: warning: symbol 'drm_fb_cma_get_gem_obj' was not declared. Should it be static? drivers/gpu/drm/drm_fb_cma_helper.c:62:12: warning: symbol 'drm_fb_cma_get_gem_addr' was not declared. Should it be static?

---
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Sean Paul <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 drivers/gpu/drm/drm_fb_cma_helper.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_fb_cma_helper.c +1 -0
index c0b0f603af63..f4967cf14f99 100644
@@ -11,6 +11,7 @@
 
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
+#include <drm/drm_fb_cma_helper.h>
 #include <drm/drm_gem_cma_helper.h>
 #include <drm/drm_gem_framebuffer_helper.h>
 #include <drm/drm_plane.h>
Signature · 1 line
2.23.0