Re: [PATCH v2 8/9] hyperv: avoid dependency on screen_info

From
Javier Martinez Canillas <javierm@redhat.com>
Date
2023-07-19 14:26:29
Also in
dri-devel, linux-alpha, linux-efi, linux-hyperv, linux-mips, linux-riscv, linux-sh, linuxppc-dev, lkml, loongarch, sparclinux
Reply to
Arnd Bergmann, 2023-07-19
Arnd Bergmann [off-list ref] writes:
From: Arnd Bergmann <arnd@arndb.de>

The two hyperv framebuffer drivers (hyperv_fb or hyperv_drm_drv) access the
global screen_info in order to take over from the sysfb framebuffer, which
in turn could be handled by simplefb, simpledrm or efifb. Similarly, the
vmbus_drv code marks the original EFI framebuffer as reserved, but this
is not required if there is no sysfb.

As a preparation for making screen_info itself more local to the sysfb
helper code, add a compile-time conditional in all three files that relate
to hyperv fb and just skip this code if there is no sysfb that needs to
be unregistered.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat
Thread (27 messages) 27 messages, 9 authors, last reply 2023-07-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help