Skip to content

Commit

Permalink
drm/hyperv: Fix unused const variable 'hyperv_modifiers'
Browse files Browse the repository at this point in the history
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: 76c56a5 ("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
  • Loading branch information
Pu Lehui authored and Thomas Zimmermann committed Jun 15, 2021
1 parent 1bd8a7d commit d29b429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static inline int hyperv_pipe_init(struct hyperv_drm_device *hv)
&hyperv_pipe_funcs,
hyperv_formats,
ARRAY_SIZE(hyperv_formats),
NULL,
hyperv_modifiers,
&hv->connector);
if (ret)
return ret;
Expand Down

0 comments on commit d29b429

Please sign in to comment.