On 10/27/21 15:25, Arnd Bergmann wrote:
[snip]
That's not going to help in this case, the way the helper functions work is that you select them as needed, and you avoid the other dependencies. This part works fine.
We could probably get rid of this symbol by just making it an unconditional part of drm.ko, as almost every driver ends up using it anyway.
Arguably, this would make the end result worse, as you'd again get drm.ko itself to link against the old framebuffer code.
What I'm not sure about is whether drivers/video/fbdev/core/fb.ko could be split up into smaller parts so DRM_FBDEV_EMULATION could only depend on a set of common code without the bits that are needed for the classic fbdev drivers.
I attempted to do something like that but the changes were nacked:
https://patchwork.kernel.org/project/linux-fbdev/list/?series=538227
Arnd
Best regards,