[Nouveau] [PATCH] drm/nouveau/devinit: Convert function disable() to be void

2023-05-04 Thread Deepak R Varma
of a fixed value. This change also eliminates untouched return variables. The change is identified using the returnvar.cocci Coccinelle semantic patch script. Signed-off-by: Deepak R Varma --- Please note: The change is compile build tested only. drivers/gpu/drm/nouveau/nvkm/subdev/devinit

[Nouveau] [PATCH] drm/nouveau/gr/gf100-: remove unnecessary semicolon

2023-05-04 Thread Deepak R Varma
Remove extra unnecessary semicolon. Issue identified using semcolon.cocci Coccinelle semantic patch. Signed-off-by: Deepak R Varma --- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100

[Nouveau] [PATCH RESEND] drm/nouveau/hwmon: Use sysfs_emit in show function callsbacks

2023-05-04 Thread Deepak R Varma
According to Documentation/filesystems/sysfs.rst, the show() callback function of kobject attributes should strictly use sysfs_emit() instead of sprintf() family functions. So, make this change. Issue identified using the coccinelle device_attr_show.cocci script. Signed-off-by: Deepak R Varma

Re: [Nouveau] nvkm_devinit_func.disable() to be made void

2023-05-04 Thread Deepak R Varma
On Sat, Jan 14, 2023 at 08:10:43PM +0530, Deepak R Varma wrote: > Hello, > It appears that the callback function disable() of struct nvkm_devinit_func > does > not need return U64 and can be transformed to be a void. This will impact a > few > drivers that have curren