Re: [PATCH] [RESEND] drm: fb_helper: fix CONFIG_FB dependency
From: Javier Martinez Canillas
Date: Wed Oct 27 2021 - 09:36:22 EST
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,
--
Javier Martinez Canillas
Linux Engineering
Red Hat