* [PATCH -next v2] drm/nouveau/gr: use list_move instead of list_del/list_add in nv40.c
@ 2021-06-09 7:10 ` Baokun Li
0 siblings, 0 replies; 3+ messages in thread
From: Baokun Li @ 2021-06-09 7:10 UTC (permalink / raw)
To: linux-kernel, Ben Skeggs, David Airlie, Daniel Vetter, Lyude Paul
Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1,
dri-devel, nouveau, kernel-janitors, Hulk Robot
Using list_move() instead of list_del() + list_add() in nv40.c.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
V1->V2:
CC mailist
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
index 67f3535ff97e..c65ca839e4de 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
@@ -252,8 +252,7 @@ nv40_gr_intr(struct nvkm_gr *base)
list_for_each_entry(temp, &gr->chan, head) {
if (temp->inst >> 4 == inst) {
chan = temp;
- list_del(&chan->head);
- list_add(&chan->head, &gr->chan);
+ list_move(&chan->head, &gr->chan);
break;
}
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Nouveau] [PATCH -next v2] drm/nouveau/gr: use list_move instead of list_del/list_add in nv40.c
@ 2021-06-09 7:10 ` Baokun Li
0 siblings, 0 replies; 3+ messages in thread
From: Baokun Li @ 2021-06-09 7:10 UTC (permalink / raw)
To: linux-kernel, Ben Skeggs, David Airlie, Daniel Vetter, Lyude Paul
Cc: kernel-janitors, Hulk Robot, nouveau, yuehaibing, dri-devel,
yangjihong1, libaokun1, yukuai3, weiyongjun1
Using list_move() instead of list_del() + list_add() in nv40.c.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
V1->V2:
CC mailist
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
index 67f3535ff97e..c65ca839e4de 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
@@ -252,8 +252,7 @@ nv40_gr_intr(struct nvkm_gr *base)
list_for_each_entry(temp, &gr->chan, head) {
if (temp->inst >> 4 == inst) {
chan = temp;
- list_del(&chan->head);
- list_add(&chan->head, &gr->chan);
+ list_move(&chan->head, &gr->chan);
break;
}
}
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH -next v2] drm/nouveau/gr: use list_move instead of list_del/list_add in nv40.c
@ 2021-06-09 7:10 ` Baokun Li
0 siblings, 0 replies; 3+ messages in thread
From: Baokun Li @ 2021-06-09 7:10 UTC (permalink / raw)
To: linux-kernel, Ben Skeggs, David Airlie, Daniel Vetter, Lyude Paul
Cc: kernel-janitors, Hulk Robot, nouveau, yuehaibing, dri-devel,
yangjihong1, libaokun1, yukuai3, weiyongjun1
Using list_move() instead of list_del() + list_add() in nv40.c.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
V1->V2:
CC mailist
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
index 67f3535ff97e..c65ca839e4de 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
@@ -252,8 +252,7 @@ nv40_gr_intr(struct nvkm_gr *base)
list_for_each_entry(temp, &gr->chan, head) {
if (temp->inst >> 4 == inst) {
chan = temp;
- list_del(&chan->head);
- list_add(&chan->head, &gr->chan);
+ list_move(&chan->head, &gr->chan);
break;
}
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-10 2:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 7:10 [PATCH -next v2] drm/nouveau/gr: use list_move instead of list_del/list_add in nv40.c Baokun Li
2021-06-09 7:10 ` Baokun Li
2021-06-09 7:10 ` [Nouveau] " Baokun Li
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.