* [PATCH] drm/vc4: drv: Remove unused variable
@ 2020-11-02 16:29 Maxime Ripard
2020-11-02 20:45 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Maxime Ripard @ 2020-11-02 16:29 UTC (permalink / raw)
To: Daniel Vetter, David Airlie, Maarten Lankhorst,
Thomas Zimmermann, Maxime Ripard
Cc: Daniel Vetter, dri-devel
The commit dcda7c28bff2 ("drm/vc4: kms: Add functions to create the state
objects") removed the last users of the vc4 variable, but didn't remove
that variable resulting in a warning.
Fixes: dcda7c28bff2 ("drm/vc4: kms: Add functions to create the state objects")
Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
drivers/gpu/drm/vc4/vc4_drv.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index 08c1cc225045..2cd97a39c286 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -307,7 +307,6 @@ static int vc4_drm_bind(struct device *dev)
static void vc4_drm_unbind(struct device *dev)
{
struct drm_device *drm = dev_get_drvdata(dev);
- struct vc4_dev *vc4 = to_vc4_dev(drm);
drm_dev_unregister(drm);
--
2.28.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/vc4: drv: Remove unused variable
2020-11-02 16:29 [PATCH] drm/vc4: drv: Remove unused variable Maxime Ripard
@ 2020-11-02 20:45 ` Daniel Vetter
2020-11-03 9:15 ` Maxime Ripard
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Vetter @ 2020-11-02 20:45 UTC (permalink / raw)
To: Maxime Ripard
Cc: David Airlie, Daniel Vetter, dri-devel, Thomas Zimmermann, Daniel Vetter
On Mon, Nov 02, 2020 at 05:29:08PM +0100, Maxime Ripard wrote:
> The commit dcda7c28bff2 ("drm/vc4: kms: Add functions to create the state
> objects") removed the last users of the vc4 variable, but didn't remove
> that variable resulting in a warning.
>
> Fixes: dcda7c28bff2 ("drm/vc4: kms: Add functions to create the state objects")
> Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
> drivers/gpu/drm/vc4/vc4_drv.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
> index 08c1cc225045..2cd97a39c286 100644
> --- a/drivers/gpu/drm/vc4/vc4_drv.c
> +++ b/drivers/gpu/drm/vc4/vc4_drv.c
> @@ -307,7 +307,6 @@ static int vc4_drm_bind(struct device *dev)
> static void vc4_drm_unbind(struct device *dev)
> {
> struct drm_device *drm = dev_get_drvdata(dev);
> - struct vc4_dev *vc4 = to_vc4_dev(drm);
>
> drm_dev_unregister(drm);
>
> --
> 2.28.0
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/vc4: drv: Remove unused variable
2020-11-02 20:45 ` Daniel Vetter
@ 2020-11-03 9:15 ` Maxime Ripard
0 siblings, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2020-11-03 9:15 UTC (permalink / raw)
To: Daniel Vetter
Cc: David Airlie, Daniel Vetter, dri-devel, Thomas Zimmermann, Daniel Vetter
[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]
On Mon, Nov 02, 2020 at 09:45:38PM +0100, Daniel Vetter wrote:
> On Mon, Nov 02, 2020 at 05:29:08PM +0100, Maxime Ripard wrote:
> > The commit dcda7c28bff2 ("drm/vc4: kms: Add functions to create the state
> > objects") removed the last users of the vc4 variable, but didn't remove
> > that variable resulting in a warning.
> >
> > Fixes: dcda7c28bff2 ("drm/vc4: kms: Add functions to create the state objects")
> > Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> > Signed-off-by: Maxime Ripard <maxime@cerno.tech>
>
> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Applied, thanks!
Maxime
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-04 8:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 16:29 [PATCH] drm/vc4: drv: Remove unused variable Maxime Ripard
2020-11-02 20:45 ` Daniel Vetter
2020-11-03 9:15 ` Maxime Ripard
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).