]> git.baikalelectronics.ru Git - kernel.git/commit
drm/hyperv: Fix unused const variable 'hyperv_modifiers'
authorPu Lehui <pulehui@huawei.com>
Tue, 15 Jun 2021 03:14:01 +0000 (11:14 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 15 Jun 2021 08:43:35 +0000 (10:43 +0200)
commite3b36cc4e1e5e96239e43effd49ce5a597a72c94
treeb48f3c57b8b9b9b0c4511096e36624c3addcdfe4
parent039fc9e9306dca32977527deb43c72a385c2704b
drm/hyperv: Fix unused const variable 'hyperv_modifiers'

There is a gcc '-Wunused-const-variable' warning:
  drivers/gpu/drm/hyperv/hyperv_drm_modeset.c:152:23: warning:
    'hyperv_modifiers' defined but not used [-Wunused-const-variable=]

while the variable should be used in drm_simple_display_pipe_init()
as suggested by Thomas, let's fix it.

Fixes: aebd89482ab4 ("drm/hyperv: Add DRM driver for hyperv synthetic video device")
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210615031401.231751-1-pulehui@huawei.com
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c