aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
diff options
context:
space:
mode:
authorPu Lehui <[email protected]>2021-06-15 03:14:01 +0000
committerThomas Zimmermann <[email protected]>2021-06-15 08:43:35 +0000
commitd29b4295c325a0214d51b82fdc929d330e20979c (patch)
treeb48f3c57b8b9b9b0c4511096e36624c3addcdfe4 /drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
parentMerge tag 'exynos-drm-next-for-v5.14' of git://git.kernel.org/pub/scm/linux/k... (diff)
downloadkernel-d29b4295c325a0214d51b82fdc929d330e20979c.tar.gz
kernel-d29b4295c325a0214d51b82fdc929d330e20979c.zip
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: 76c56a5affeb ("drm/hyperv: Add DRM driver for hyperv synthetic video device") Signed-off-by: Pu Lehui <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/hyperv/hyperv_drm_modeset.c')
-rw-r--r--drivers/gpu/drm/hyperv/hyperv_drm_modeset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
index 02718e3e859e..3aaee4730ec6 100644
--- a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
+++ b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
@@ -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;