Patch "drm/nouveau/instmem: fix uninitialized_var.cocci warning" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/nouveau/instmem: fix uninitialized_var.cocci warning

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-nouveau-instmem-fix-uninitialized_var.cocci-warn.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 85b40f3672abf68559b33420a05133d5ac1e7e20
Author: Guo Zhengkui <guozhengkui@xxxxxxxx>
Date:   Mon Feb 28 22:23:50 2022 +0800

    drm/nouveau/instmem: fix uninitialized_var.cocci warning
    
    [ Upstream commit 2046e733e125fa58ed997f3d26d43543faf82c95 ]
    
    Fix following coccicheck warning:
    drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:316:11-12:
    WARNING this kind of initialization is deprecated.
    
    `void *map = map` has the same form of
    uninitialized_var() macro. I remove the redundant assignement. It has
    been tested with gcc (Debian 8.3.0-6) 8.3.0.
    
    The patch which removed uninitialized_var() is:
    https://lore.kernel.org/all/20121028102007.GA7547@xxxxxxxxx/
    And there is very few "/* GCC */" comments in the Linux kernel code now.
    
    Signed-off-by: Guo Zhengkui <guozhengkui@xxxxxxxx>
    Reviewed-by: Lyude Paul <lyude@xxxxxxxxxx>
    Signed-off-by: Lyude Paul <lyude@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220228142352.18006-1-guozhengkui@xxxxxxxx
    Stable-dep-of: 3b1ae9b71c2a ("octeontx2-af: Consider the action set by PF")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c
index 96aca0edfa3c0..c51bac76174c1 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c
@@ -313,7 +313,7 @@ nv50_instobj_dtor(struct nvkm_memory *memory)
 	struct nv50_instobj *iobj = nv50_instobj(memory);
 	struct nvkm_instmem *imem = &iobj->imem->base;
 	struct nvkm_vma *bar;
-	void *map = map;
+	void *map;
 
 	mutex_lock(&imem->mutex);
 	if (likely(iobj->lru.next))




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux