From: Deepak Rawat <drawat.floss@gmail.com>
To: Thomas Zimmermann <tzimmermann@suse.de>,
Pu Lehui <pulehui@huawei.com>,
airlied@linux.ie, daniel@ffwll.ch
Cc: zhangjinhao2@huawei.com, linux-hyperv@vger.kernel.org,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH -next] drm/hyperv: Remove unused variable
Date: Mon, 14 Jun 2021 07:01:51 -0700 [thread overview]
Message-ID: <2bf51ac723cb097685dd4c89926599d939d31765.camel@gmail.com> (raw)
In-Reply-To: <078d9bb5-e7af-4961-f4c1-cd3ab415cff4@suse.de>
On Wed, 2021-06-09 at 09:46 +0200, Thomas Zimmermann wrote:
> Hi
>
> Am 09.06.21 um 04:49 schrieb Pu Lehui:
> > 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@huawei.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
> > -};
>
> This constant should rather be used in the call to
> drm_simple_display_pipe_init(). [1]
>
> Best regards
> Thomas
>
> [1]
> https://cgit.freedesktop.org/drm/drm-misc/tree/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c#n161
>
>
Hi Pu,
Thanks for the patch. Is it possible to send another patch as per
suggestion by Thomas. There is a kernel test robot failure as well.
Deepak
next prev parent reply other threads:[~2021-06-14 14:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-09 2:49 [PATCH -next] drm/hyperv: Remove unused variable Pu Lehui
2021-06-09 7:46 ` Thomas Zimmermann
2021-06-14 14:01 ` Deepak Rawat [this message]
2021-06-15 2:10 ` Pu Lehui
2021-06-15 2:04 ` Pu Lehui
2021-06-15 3:14 ` [PATCH v2 -next] drm/hyperv: Fix unused const variable 'hyperv_modifiers' Pu Lehui
2021-06-15 9:25 ` Thomas Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2bf51ac723cb097685dd4c89926599d939d31765.camel@gmail.com \
--to=drawat.floss@gmail.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pulehui@huawei.com \
--cc=tzimmermann@suse.de \
--cc=zhangjinhao2@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).