[PATCH] fbdev: make offb driver tristate

Thomas Zimmermann tzimmermann at suse.de
Sun Nov 27 00:40:40 AEDT 2022



Am 26.11.22 um 01:04 schrieb Randy Dunlap:
> Make the offb (Open Firmware frame buffer) driver tristate,
> i.e., so that it can be built as a loadable module.
> 
> However, it still depends on the setting of DRM_OFDRM
> so that both of these drivers cannot be builtin at the same time
> nor can one be builtin and the other one a loadable module.
> 
> Build-tested successfully with all combination of DRM_OFDRM and FB_OF.
> 
> This fixes a build issue that Michal reported when FB_OF=y and
> DRM_OFDRM=m:
> 
> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x58): undefined reference to `cfb_fillrect'
> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x60): undefined reference to `cfb_copyarea'
> powerpc64-linux-ld: drivers/video/fbdev/offb.o:(.data.rel.ro+0x68): undefined reference to `cfb_imageblit'
> 
> Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
> Suggested-by: Arnd Bergmann <arnd at arndb.de>
> Cc: Masahiro Yamada <masahiroy at kernel.org>
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> Cc: Michal Suchánek <msuchanek at suse.de>
> Cc: linuxppc-dev at lists.ozlabs.org
> Cc: Daniel Vetter <daniel at ffwll.ch>
> Cc: Helge Deller <deller at gmx.de>
> Cc: linux-fbdev at vger.kernel.org
> Cc: dri-devel at lists.freedesktop.org

Acked-by: Thomas Zimmermann <tzimmermann at suse.de>

> 
> ---
>   drivers/video/fbdev/Kconfig |    4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff -- a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
> --- a/drivers/video/fbdev/Kconfig
> +++ b/drivers/video/fbdev/Kconfig
> @@ -456,8 +456,8 @@ config FB_ATARI
>   	  chipset found in Ataris.
>   
>   config FB_OF
> -	bool "Open Firmware frame buffer device support"
> -	depends on (FB = y) && PPC && (!PPC_PSERIES || PCI)
> +	tristate "Open Firmware frame buffer device support"
> +	depends on FB && PPC && (!PPC_PSERIES || PCI)
>   	depends on !DRM_OFDRM
>   	select APERTURE_HELPERS
>   	select FB_CFB_FILLRECT

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20221126/1eec606e/attachment.sig>


More information about the Linuxppc-dev mailing list