From: Alex Deucher <alexdeucher@gmail.com> To: yuehaibing@huawei.com Cc: "Deucher, Alexander" <alexander.deucher@amd.com>, Christian Koenig <christian.koenig@amd.com>, Chunming Zhou <David1.Zhou@amd.com>, Dave Airlie <airlied@linux.ie>, kernel-janitors@vger.kernel.org, Maling list - DRI developers <dri-devel@lists.freedesktop.org>, amd-gfx list <amd-gfx@lists.freedesktop.org>, LKML <linux-kernel@vger.kernel.org> Subject: Re: [PATCH -next] drm/radeon/kms: remove set but not used variable 'pll' Date: Thu, 25 Oct 2018 14:24:17 -0400 [thread overview] Message-ID: <CADnq5_OSqxu_e88dmh57eiq2y78jKrQkarDXNYpeSWCe066DrA@mail.gmail.com> (raw) In-Reply-To: <1540116359-164086-1-git-send-email-yuehaibing@huawei.com> On Sun, Oct 21, 2018 at 11:32 PM YueHaibing <yuehaibing@huawei.com> wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/radeon/radeon_legacy_tv.c: In function 'radeon_legacy_tv_init_restarts': > drivers/gpu/drm/radeon/radeon_legacy_tv.c:435:21: warning: > variable 'pll' set but not used [-Wunused-but-set-variable] > struct radeon_pll *pll; > > It never used since introduction in commit > 4ce001abafaf ("drm/radeon/kms: add initial radeon tv-out support.") > Also remove related variables 'dev, rdev, radeon_crtc' > > Signed-off-by: YueHaibing <yuehaibing@huawei.com> Applied. thanks! Alex > --- > drivers/gpu/drm/radeon/radeon_legacy_tv.c | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/radeon_legacy_tv.c b/drivers/gpu/drm/radeon/radeon_legacy_tv.c > index 4278272..3dae2c4 100644 > --- a/drivers/gpu/drm/radeon/radeon_legacy_tv.c > +++ b/drivers/gpu/drm/radeon/radeon_legacy_tv.c > @@ -421,24 +421,14 @@ static void radeon_legacy_write_tv_restarts(struct radeon_encoder *radeon_encode > > static bool radeon_legacy_tv_init_restarts(struct drm_encoder *encoder) > { > - struct drm_device *dev = encoder->dev; > - struct radeon_device *rdev = dev->dev_private; > struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); > struct radeon_encoder_tv_dac *tv_dac = radeon_encoder->enc_priv; > - struct radeon_crtc *radeon_crtc; > int restart; > unsigned int h_total, v_total, f_total; > int v_offset, h_offset; > u16 p1, p2, h_inc; > bool h_changed; > const struct radeon_tv_mode_constants *const_ptr; > - struct radeon_pll *pll; > - > - radeon_crtc = to_radeon_crtc(radeon_encoder->base.crtc); > - if (radeon_crtc->crtc_id == 1) > - pll = &rdev->clock.p2pll; > - else > - pll = &rdev->clock.p1pll; > > const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); > if (!const_ptr) > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx
prev parent reply other threads:[~2018-10-25 18:24 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-10-21 10:05 YueHaibing 2018-10-25 18:24 ` Alex Deucher [this message]
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=CADnq5_OSqxu_e88dmh57eiq2y78jKrQkarDXNYpeSWCe066DrA@mail.gmail.com \ --to=alexdeucher@gmail.com \ --cc=David1.Zhou@amd.com \ --cc=airlied@linux.ie \ --cc=alexander.deucher@amd.com \ --cc=amd-gfx@lists.freedesktop.org \ --cc=christian.koenig@amd.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=yuehaibing@huawei.com \ --subject='Re: [PATCH -next] drm/radeon/kms: remove set but not used variable '\''pll'\''' \ /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
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).