* [PATCH] drm/vc4: Handing the return value of drm_universal_plane_init
@ 2020-09-11 8:09 Tian Tao
2020-09-14 7:07 ` Thomas Zimmermann
0 siblings, 1 reply; 3+ messages in thread
From: Tian Tao @ 2020-09-11 8:09 UTC (permalink / raw)
To: eric, airlied, daniel, dri-devel; +Cc: linuxarm
Handing the return value of drm_universal_plane_init to fix the following
W=1 kernel build warning(s):
vc4_plane.c: In function ‘vc4_plane_init’:
vc4_plane.c:1340:6: warning: variable ‘ret’ set but not
used [-Wunused-but-set-variable]
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
drivers/gpu/drm/vc4/vc4_plane.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c
index 24d7e6d..65c1205 100644
--- a/drivers/gpu/drm/vc4/vc4_plane.c
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
@@ -1361,6 +1361,8 @@ struct drm_plane *vc4_plane_init(struct drm_device *dev,
&vc4_plane_funcs,
formats, ARRAY_SIZE(formats),
modifiers, type, NULL);
+ if (ret)
+ return ERR_PTR(ret);
drm_plane_helper_add(plane, &vc4_plane_helper_funcs);
--
2.7.4
_______________________________________________
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: Handing the return value of drm_universal_plane_init
2020-09-11 8:09 [PATCH] drm/vc4: Handing the return value of drm_universal_plane_init Tian Tao
@ 2020-09-14 7:07 ` Thomas Zimmermann
2020-09-16 7:59 ` Thomas Zimmermann
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Zimmermann @ 2020-09-14 7:07 UTC (permalink / raw)
To: Tian Tao, eric, airlied, daniel, dri-devel; +Cc: linuxarm
[-- Attachment #1.1.1: Type: text/plain, Size: 1229 bytes --]
Hi
Am 11.09.20 um 10:09 schrieb Tian Tao:
> Handing the return value of drm_universal_plane_init to fix the following
> W=1 kernel build warning(s):
> vc4_plane.c: In function ‘vc4_plane_init’:
> vc4_plane.c:1340:6: warning: variable ‘ret’ set but not
> used [-Wunused-but-set-variable]
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Thanks!
> ---
> drivers/gpu/drm/vc4/vc4_plane.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c
> index 24d7e6d..65c1205 100644
> --- a/drivers/gpu/drm/vc4/vc4_plane.c
> +++ b/drivers/gpu/drm/vc4/vc4_plane.c
> @@ -1361,6 +1361,8 @@ struct drm_plane *vc4_plane_init(struct drm_device *dev,
> &vc4_plane_funcs,
> formats, ARRAY_SIZE(formats),
> modifiers, type, NULL);
> + if (ret)
> + return ERR_PTR(ret);
>
> drm_plane_helper_add(plane, &vc4_plane_helper_funcs);
>
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 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
* Re: [PATCH] drm/vc4: Handing the return value of drm_universal_plane_init
2020-09-14 7:07 ` Thomas Zimmermann
@ 2020-09-16 7:59 ` Thomas Zimmermann
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Zimmermann @ 2020-09-16 7:59 UTC (permalink / raw)
To: Tian Tao, eric, airlied, daniel, dri-devel; +Cc: linuxarm
[-- Attachment #1.1.1: Type: text/plain, Size: 1434 bytes --]
Hi Tian
Am 14.09.20 um 09:07 schrieb Thomas Zimmermann:
> Hi
>
> Am 11.09.20 um 10:09 schrieb Tian Tao:
>> Handing the return value of drm_universal_plane_init to fix the following
>> W=1 kernel build warning(s):
>> vc4_plane.c: In function ‘vc4_plane_init’:
>> vc4_plane.c:1340:6: warning: variable ‘ret’ set but not
>> used [-Wunused-but-set-variable]
>>
>> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
>
> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Please go ahead and merge the patch, or let me know if I should merge it.
Best regards
Thomas
>
> Thanks!
>
>> ---
>> drivers/gpu/drm/vc4/vc4_plane.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c
>> index 24d7e6d..65c1205 100644
>> --- a/drivers/gpu/drm/vc4/vc4_plane.c
>> +++ b/drivers/gpu/drm/vc4/vc4_plane.c
>> @@ -1361,6 +1361,8 @@ struct drm_plane *vc4_plane_init(struct drm_device *dev,
>> &vc4_plane_funcs,
>> formats, ARRAY_SIZE(formats),
>> modifiers, type, NULL);
>> + if (ret)
>> + return ERR_PTR(ret);
>>
>> drm_plane_helper_add(plane, &vc4_plane_helper_funcs);
>>
>>
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 516 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-09-16 7:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-11 8:09 [PATCH] drm/vc4: Handing the return value of drm_universal_plane_init Tian Tao
2020-09-14 7:07 ` Thomas Zimmermann
2020-09-16 7:59 ` Thomas Zimmermann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.