Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4971825pxj; Wed, 9 Jun 2021 06:27:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy83sZxFruBdTM7UZUzcrwoj0wC5wyGft/1/3k5FgopAoxTV5KeDh/UaAZa67RQfb/2BOTW X-Received: by 2002:a17:906:eca7:: with SMTP id qh7mr29245226ejb.143.1623245276304; Wed, 09 Jun 2021 06:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623245276; cv=none; d=google.com; s=arc-20160816; b=ieEKTWroxqh2ILHiLpiaH/5dHtmkS1MfMWvHuBelah5SmVjho15bCPiOy94Q+ncZQL eKpz436/OVZ5ChXBxsh624O/NfG7Io6cybQoFd7JVkxqVlM9bxfdu3rFAK6bRkCkHljA ApWckO14ZEczT2ROSN0dquE95Q0mIat79K0n8yB5IJvaL2ETX7gi6B6Il0WlfbDsvlRs 5w7cDrJgtfXoWMHqhNeymbMHqUGa1ghMoXJulBmSIJ20JBwFO/xzyAWhZ/aTpFQwznMB e6pLA61OiZ9hCpg6abnceADRY5/FPtZZbe48dtWKnesEak9l6CRLmq+ZN5oJ5SAs61IP PmDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=5L1H6PMLb4xeuGzqhsKS3Zldpw4qDOlGZ7gsWNyzC3w=; b=IZp6Ym7TAdwgynbLJ0Fsv40T+C2fA3ZQzAyak+mSXeMkNnlM5bfjLp9+s5iZ33syFJ FOSb/9wF9FRDY9MGEu1Jj7a0Ip50ATzSysCIOzPiyH1cQk4da9w6lESx7SsKifpoV5PA buUg9GQHwcmV1wAWmA34bPdz/46Y3lzGyrKYrVbuyQW02A2qyVctvVZsUPTcqj7GaP/+ Nqa6PEm6hAOVnMmYcvEAxu5Vwov30AaEdgQUSLNlRJa8BEBrvJUTpe4irruk58//i1HX LUwC+ku34fn3/5b5bF535XSi1x9Q45WxDrVZqzw0MZTR5vHLa43JlErlwfBAGUvLxIzQ NnAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 11si2230313eja.16.2021.06.09.06.27.32; Wed, 09 Jun 2021 06:27:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234966AbhFIHLD (ORCPT + 99 others); Wed, 9 Jun 2021 03:11:03 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:5303 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234009AbhFIHKu (ORCPT ); Wed, 9 Jun 2021 03:10:50 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4G0J4M2ccYz1BJhn; Wed, 9 Jun 2021 15:04:03 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 15:08:55 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 15:08:54 +0800 From: Baokun Li To: , VMware Graphics , Roland Scheidegger , Zack Rusin , David Airlie , Daniel Vetter CC: , , , , , , , "Hulk Robot" Subject: [PATCH -next v2] drm/vmwgfx: Use list_move_tail instead of list_del/list_add_tail in vmwgfx_cmdbuf.c Date: Wed, 9 Jun 2021 15:18:03 +0800 Message-ID: <20210609071803.1347254-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using list_move_tail() instead of list_del() + list_add_tail() in vmwgfx_cmdbuf.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c index 6bb4961e64a5..58417d972b69 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c @@ -358,8 +358,7 @@ static void vmw_cmdbuf_ctx_submit(struct vmw_cmdbuf_man *man, break; } - list_del(&entry->list); - list_add_tail(&entry->list, &ctx->hw_submitted); + list_move_tail(&entry->list, &ctx->hw_submitted); ctx->num_hw_submitted++; }