[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210609024940.34933-1-pulehui@huawei.com>
Date: Wed, 9 Jun 2021 10:49:40 +0800
From: Pu Lehui <pulehui@...wei.com>
To: <drawat.floss@...il.com>, <airlied@...ux.ie>, <daniel@...ll.ch>
CC: <linux-hyperv@...r.kernel.org>, <dri-devel@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, <pulehui@...wei.com>,
<zhangjinhao2@...wei.com>
Subject: [PATCH -next] drm/hyperv: Remove unused variable
Fixes 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=]
Signed-off-by: Pu Lehui <pulehui@...wei.com>
---
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
index 02718e3e859e..3f83493909e6 100644
--- a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
+++ b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
@@ -149,11 +149,6 @@ static const uint32_t hyperv_formats[] = {
DRM_FORMAT_XRGB8888,
};
-static const uint64_t hyperv_modifiers[] = {
- DRM_FORMAT_MOD_LINEAR,
- DRM_FORMAT_MOD_INVALID
-};
-
static inline int hyperv_pipe_init(struct hyperv_drm_device *hv)
{
int ret;
--
2.17.1
Powered by blists - more mailing lists