Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2264100rwb; Sun, 4 Sep 2022 11:55:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7/b5uZTxAv8G+zYrEMKtujR939m14lXieLhqdaZ59Aqx8YEuqDcpVQxrNu8ni/0V1/9pbT X-Received: by 2002:a05:6402:2791:b0:448:763c:666f with SMTP id b17-20020a056402279100b00448763c666fmr28349506ede.36.1662317742823; Sun, 04 Sep 2022 11:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662317742; cv=none; d=google.com; s=arc-20160816; b=VO126YCYqL97KigpEWNB78m6+n/63vnmWApxhC/MAjXCBfxoWi0yoe3c4zFwjiZ1oN kiAwSo5JYGBG8qTQWJWvH6lCVUp95RobPUGPrVrnguzFeouauPqK6BI4ZgQmtybw0h/j 0FuuNIybspJVQt4TkWv2jRhMFj+R8OI8khWdOniVfkve1g4lDgokWVO6hdZMrYOhMrh3 hmu1VeZmyKtlmOQ3yo4b2Pq8rBUINwM6IfH8kfE2mZAjQVV+mz59HgvP7jNggL6Y5m5i dr2P/pqHintls7KvdtEoG1Q3vTnICHjgVoBOLycGVhqmvBug+tpSJURj77EVP04HIdxZ PX/g== 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:dkim-signature; bh=0Cixm+IIyxb326ssYKv/Au9Yv7Sc+F7nhziOB8Ue01o=; b=FhL/NespmB0ZgY+68D0zfjHr/1gkJIuQReIeiOJEnp56AfNWAICV1aFDE1jTpKXJgk vor9wTdpAkeJm8reBjgZc9KDKOd2hb7VMJrLsBFo/bV8XiqCikSOdRUPCdFs/SQVXLeS taMMyIMBl8u2JihGINvZdMMKtNmRhml28fIyDqMdIg/cyUxwvWWuNcApUANqs4ACsdmO saj638CQKiOOcVFerIuuekw9AO6SOVaE2AQsJRYtVPDWL5k4yg6dgVhWJNO3Nc4cHpoR l+R9CDcyUK5ec1h01predR4IBvFTmCPN3xuVPL02FFnIm3RnwoUuesnecxemIgHJgmHN u4uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=opPn+Zhz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21-20020a170906269500b00741550f828bsi5405950ejc.919.2022.09.04.11.55.17; Sun, 04 Sep 2022 11:55:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=opPn+Zhz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231644AbiIDSdn (ORCPT + 99 others); Sun, 4 Sep 2022 14:33:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbiIDSdm (ORCPT ); Sun, 4 Sep 2022 14:33:42 -0400 Received: from m12-13.163.com (m12-13.163.com [220.181.12.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F2A5930548 for ; Sun, 4 Sep 2022 11:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=0Cixm +IIyxb326ssYKv/Au9Yv7Sc+F7nhziOB8Ue01o=; b=opPn+ZhzMSd99l1shlpjA xKjFwDqQuroq9cM9LAUu4Si5L6Jo3oc7IkFafdc6j/lP0VoDgBeIuFzFZ+bn3iHB eSRbVuZy1upto6hd0uD+Cag31oS8+0xI/Dee/hyFrBQVbtuw/nURcaliZ7RB//CN BRFEO8R5tAJ2Zk6//qmjRA= Received: from f00160-VMware-Virtual-Platform.localdomain (unknown [1.203.67.201]) by smtp9 (Coremail) with SMTP id DcCowADXz7Vm7xRjeH6ieQ--.9485S4; Mon, 05 Sep 2022 02:33:23 +0800 (CST) From: Jingyu Wang To: alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, Felix.Kuehling@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jingyu Wang Subject: [PATCH] drm/amdgpu: cleanup coding style in amdgpu_sync.c file Date: Mon, 5 Sep 2022 02:33:07 +0800 Message-Id: <20220904183307.14550-1-jingyuwang_vip@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: DcCowADXz7Vm7xRjeH6ieQ--.9485S4 X-Coremail-Antispam: 1Uf129KBjvJXoW7Jw1kJryDJFyrAFyrCr43GFg_yoW8JF1UpF 1fJr4jgr45ZFWa93srAF1kZF93t3W7XFyxKr17Zw4Fqws8ZF15JF1FyrW0vFyDWrs8CF42 yrWqqayrZFnIvF7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pEsXonUUUUU= X-Originating-IP: [1.203.67.201] X-CM-SenderInfo: 5mlqw5xxzd0whbyl1qqrwthudrp/xtbCoA5yF1zmWD1eTwABsE X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a patch to the amdgpu_sync.c file that fixes some warnings found by the checkpatch.pl tool Signed-off-by: Jingyu Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index 504af1b93bfa..090e66a1b284 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT /* * Copyright 2014 Advanced Micro Devices, Inc. * All Rights Reserved. @@ -315,6 +316,7 @@ struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync) struct hlist_node *tmp; struct dma_fence *f; int i; + hash_for_each_safe(sync->fences, i, tmp, e, node) { f = e->fence; @@ -392,7 +394,7 @@ void amdgpu_sync_free(struct amdgpu_sync *sync) { struct amdgpu_sync_entry *e; struct hlist_node *tmp; - unsigned i; + unsigned int i; hash_for_each_safe(sync->fences, i, tmp, e, node) { hash_del(&e->node); base-commit: e47eb90a0a9ae20b82635b9b99a8d0979b757ad8 prerequisite-patch-id: fefd0009b468430bb223fc92e4abe9710518b1ea -- 2.34.1