From: Zou Wei <zou_wei@huawei.com> To: <vkoul@kernel.org>, <mripard@kernel.org>, <wens@csie.org>, <jernej.skrabec@gmail.com> Cc: <dmaengine@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-sunxi@lists.linux.dev>, <linux-kernel@vger.kernel.org>, Zou Wei <zou_wei@huawei.com> Subject: [PATCH -next] dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail Date: Mon, 7 Jun 2021 11:20:35 +0800 [thread overview] Message-ID: <1623036035-30614-1-git-send-email-zou_wei@huawei.com> (raw) Using list_move_tail() instead of list_del() + list_add_tail(). Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> --- drivers/dma/sun4i-dma.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/dma/sun4i-dma.c b/drivers/dma/sun4i-dma.c index e8b6633..93f1645 100644 --- a/drivers/dma/sun4i-dma.c +++ b/drivers/dma/sun4i-dma.c @@ -1042,9 +1042,8 @@ static irqreturn_t sun4i_dma_interrupt(int irq, void *dev_id) * Move the promise into the completed list now that * we're done with it */ - list_del(&vchan->processing->list); - list_add_tail(&vchan->processing->list, - &contract->completed_demands); + list_move_tail(&vchan->processing->list, + &contract->completed_demands); /* * Cyclic DMA transfers are special: -- 2.6.2
WARNING: multiple messages have this Message-ID (diff)
From: Zou Wei <zou_wei@huawei.com> To: <vkoul@kernel.org>, <mripard@kernel.org>, <wens@csie.org>, <jernej.skrabec@gmail.com> Cc: <dmaengine@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-sunxi@lists.linux.dev>, <linux-kernel@vger.kernel.org>, Zou Wei <zou_wei@huawei.com> Subject: [PATCH -next] dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail Date: Mon, 7 Jun 2021 11:20:35 +0800 [thread overview] Message-ID: <1623036035-30614-1-git-send-email-zou_wei@huawei.com> (raw) Using list_move_tail() instead of list_del() + list_add_tail(). Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> --- drivers/dma/sun4i-dma.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/dma/sun4i-dma.c b/drivers/dma/sun4i-dma.c index e8b6633..93f1645 100644 --- a/drivers/dma/sun4i-dma.c +++ b/drivers/dma/sun4i-dma.c @@ -1042,9 +1042,8 @@ static irqreturn_t sun4i_dma_interrupt(int irq, void *dev_id) * Move the promise into the completed list now that * we're done with it */ - list_del(&vchan->processing->list); - list_add_tail(&vchan->processing->list, - &contract->completed_demands); + list_move_tail(&vchan->processing->list, + &contract->completed_demands); /* * Cyclic DMA transfers are special: -- 2.6.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2021-06-07 3:02 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-07 3:20 Zou Wei [this message] 2021-06-07 3:20 ` [PATCH -next] dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail Zou Wei 2021-06-07 8:41 ` Maxime Ripard 2021-06-07 8:41 ` Maxime Ripard 2021-06-07 11:36 ` Vinod Koul 2021-06-07 11:36 ` Vinod Koul
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1623036035-30614-1-git-send-email-zou_wei@huawei.com \ --to=zou_wei@huawei.com \ --cc=dmaengine@vger.kernel.org \ --cc=jernej.skrabec@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-sunxi@lists.linux.dev \ --cc=mripard@kernel.org \ --cc=vkoul@kernel.org \ --cc=wens@csie.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.