[PATCH] drm/hyperv-drm: Include framebuffer and EDID headers

Maxime Ripard maxime at cerno.tech
Wed Jun 22 11:57:36 UTC 2022


On Wed, Jun 22, 2022 at 10:34:13AM +0200, Thomas Zimmermann wrote:
> Fix a number of compile errors by including the correct header
> files. Examples are shown below.
> 
>   ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c: In function 'hyperv_blit_to_vram_rect':
>   ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c:25:48: error: invalid use of undefined type 'struct drm_framebuffer'
>    25 |         struct hyperv_drm_device *hv = to_hv(fb->dev);
>       |                                                ^~
> 
>   ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c: In function 'hyperv_connector_get_modes':
>   ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c:59:17: error: implicit declaration of function 'drm_add_modes_noedid' [-Werror=implicit-function-declaration]
>    59 |         count = drm_add_modes_noedid(connector,
>       |                 ^~~~~~~~~~~~~~~~~~~~
> 
>   ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c:62:9: error: implicit declaration of function 'drm_set_preferred_mode'; did you mean 'drm_mm_reserve_node'? [-Werror=implicit-function-declaration]
>    62 |         drm_set_preferred_mode(connector, hv->preferred_width,
>       |         ^~~~~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> Fixes: 76c56a5affeb ("drm/hyperv: Add DRM driver for hyperv synthetic video device")
> Cc: Deepak Rawat <drawat.floss at gmail.com>
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Cc: Maxime Ripard <mripard at kernel.org>
> Cc: linux-hyperv at vger.kernel.org
> Cc: dri-devel at lists.freedesktop.org
> Cc: <stable at vger.kernel.org> # v5.14+

Acked-by: Maxime Ripard <maxime at cerno.tech>

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220622/50266fc2/attachment.sig>


More information about the dri-devel mailing list