Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4971082pxj; Wed, 9 Jun 2021 06:26:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWJtpRyDz3wsph6yJm1u91tqgO8fOdrq5UjVxk/s5CPz7gSLgk2NibGiiAwNemKBcrZ7p8 X-Received: by 2002:a05:6402:4414:: with SMTP id y20mr30645051eda.130.1623245217602; Wed, 09 Jun 2021 06:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623245217; cv=none; d=google.com; s=arc-20160816; b=XB1IsonjCgLWKFvaYwOIkkJh8UWL/N+RFRX6tzezlDrqqoxICS02KUd6MxErk0dmS7 aDISWcA7gc1FaNF+YpZfeBuSfj8vrPagZ2GySryscLIstNgWIYB+zYpnYi7B31P8JV7B 2EysVJP0ejx5uFDNGZIBIs+790iQhJkP3p+Io/rOLGBrDT0CoCw30ISeEH1T3Nkyt+/S d/isxSvFILJdBnqTJpghgsTFifh9bQA27FN9R/Paxsg+1j8japdKj2GmtcqqvEtUZcsi 4IU02TIPn9shXw1PZEYphIRI4nRQB5joo+HR1W4ILDo323lQEzz7Q8dARyTuEsKOM2dM bH9g== 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=U6ezzna0oBepoEp7o5dMjPn0F1ZCQvdd59/sOrq/Qw8=; b=LWC+3nDSqUhUxfsjkWY2PCsWpn+UyimhfJl5AuBG9IFNmWYFPOIDa5gAIZlvmHFSFR ClfCHbCx186Ki1DiqWybes7nTdyaGpUqxQ3eZtKAm6ZfK6+XaK6KoQnfkAs54zIU47GV EKU+X8Zu3i6VfXKwgBKWCcgE7vXGxsPnFoyBADa2n3EZLVuhe+YfyHbQYAdBY5v7AVZV xOoXEXmb9WLMwRgM3WC0K/qCoB6HeawvG8B8PKh9v9fF0GMCmSnxhXKf28Tl2uXbQyO0 4cG6z4BU2lTun3oTp/n6STlSuY3mD6wfDKcV4CPGGSXSHeopW2tSaYLVq33YmLEhkXJf G2Eg== 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 o22si2273452edq.221.2021.06.09.06.26.33; Wed, 09 Jun 2021 06:26:57 -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 S235487AbhFIHGs (ORCPT + 99 others); Wed, 9 Jun 2021 03:06:48 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:5460 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234372AbhFIHGq (ORCPT ); Wed, 9 Jun 2021 03:06:46 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G0J206J4BzZdxh; Wed, 9 Jun 2021 15:02:00 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv711-chm.china.huawei.com (10.1.198.66) 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:03:50 +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:03:49 +0800 From: Baokun Li To: , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter CC: , , , , , , , , Hulk Robot Subject: [PATCH -next v2] drm/radeon: use list_move instead of list_del/list_add in radeon_vm.c Date: Wed, 9 Jun 2021 15:12:59 +0800 Message-ID: <20210609071259.1335938-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() instead of list_del() + list_add() in radeon_vm.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/radeon/radeon_vm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/radeon_vm.c index 36a38adaaea9..b86c60ab0f7e 100644 --- a/drivers/gpu/drm/radeon/radeon_vm.c +++ b/drivers/gpu/drm/radeon/radeon_vm.c @@ -933,8 +933,7 @@ int radeon_vm_bo_update(struct radeon_device *rdev, } list_del_init(&bo_va->vm_status); } else { - list_del(&bo_va->vm_status); - list_add(&bo_va->vm_status, &vm->cleared); + list_move(&bo_va->vm_status, &vm->cleared); } spin_unlock(&vm->status_lock);