Skip to content

Commit d29b429

Browse files
Pu Lehuitdz
authored andcommitted
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: 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
1 parent 1bd8a7d commit d29b429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/hyperv/hyperv_drm_modeset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static inline int hyperv_pipe_init(struct hyperv_drm_device *hv)
163163
&hyperv_pipe_funcs,
164164
hyperv_formats,
165165
ARRAY_SIZE(hyperv_formats),
166-
NULL,
166+
hyperv_modifiers,
167167
&hv->connector);
168168
if (ret)
169169
return ret;

0 commit comments

Comments
 (0)