fbdev (ported by alex r aka d3adme4t to 4.16), i currently try to port
i hope some people help me getting things to work. maybe other features are missing, please test and tell me. you find compiled kernels on releases-tab of github
drivers/gpu/drm/mediatek/mtk_drm_fb.c: In function 'mtk_drm_framebuffer_create':
drivers/gpu/drm/mediatek/mtk_drm_fb.c:65:9: error: assignment to 'struct mtk_drm_fb *' from incompatible pointer type 'struct drm_framebuffer *' [-Werror=incompatible-pointer-types]
mtk_fb = mtk_drm_framebuffer_init(dev, mode, obj);
^
drivers/gpu/drm/mediatek/mtk_drm_fb.c:69:16: error: dereferencing pointer to incomplete type 'struct mtk_drm_fb'
return &mtk_fb->base;
^~
drivers/gpu/drm/mediatek/mtk_drm_fb.c:70:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target 'drivers/gpu/drm/mediatek/mtk_drm_fb.o' failed
make[4]: *** [drivers/gpu/drm/mediatek/mtk_drm_fb.o] Error 1
make[4]: *** Waiting for unfinished jobs....
drivers/gpu/drm/mediatek/mtk_drm_drv.c:207:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
.main_path = mt2712_mtk_ddp_main,
^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/mediatek/mtk_drm_drv.c:209:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
.ext_path = mt2712_mtk_ddp_ext,
^~~~~~~~~~~~~~~~~~
CC drivers/video/fbdev/core/fbmem.o
CC drivers/video/fbdev/core/fbcon.o
CC drivers/video/fbdev/core/bitblit.o
CC drivers/video/fbdev/core/softcursor.o
scripts/Makefile.build:548: recipe for target 'drivers/gpu/drm/mediatek' failed
make[3]: *** [drivers/gpu/drm/mediatek] Error 2
as far as i see in 4.16 each function in this file has returntype mtk_drm_fb…in 4.19 it is a generic drm_framebuffer
so i added this type, but can’t get it running by changing return-type alone, tried now to fix by using drm_framebuffer