Re: [PATCH] drm/ingenic: Use resource_size function on resource object

2022-06-24 Thread Paul Cercueil
Hi, Le ven., juin 24 2022 at 09:31:59 +0800, Jiapeng Chong a écrit : This was found by coccicheck: ./drivers/gpu/drm/ingenic/ingenic-drm-drv.c:1149:35-38: WARNING: Suspicious code. resource_size is maybe missing with res. Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/ingenic/ingenic-d

Re: [PATCH] drm/ingenic: Use resource_size function on resource object

2022-06-24 Thread Sam Ravnborg
Hi Jiapeng, On Fri, Jun 24, 2022 at 09:31:59AM +0800, Jiapeng Chong wrote: > This was found by coccicheck: > > ./drivers/gpu/drm/ingenic/ingenic-drm-drv.c:1149:35-38: WARNING: Suspicious > code. resource_size is maybe missing with res. > Nice one, now I have to go back and fix my code as well.

[PATCH] drm/ingenic: Use resource_size function on resource object

2022-06-23 Thread Jiapeng Chong
This was found by coccicheck: ./drivers/gpu/drm/ingenic/ingenic-drm-drv.c:1149:35-38: WARNING: Suspicious code. resource_size is maybe missing with res. Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] drm/ingenic: Use resource_size function on resource object

2022-03-03 Thread Jiapeng Chong
Clean up the following coccicheck warning: ./drivers/gpu/drm/ingenic/ingenic-drm-drv.c:1110:35-38: WARNING: Suspicious code. resource_size is maybe missing with res. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- 1 file changed, 1 in