From nobody Sat Apr 11 12:31:24 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DFE3C54EE9 for ; Sun, 4 Sep 2022 18:33:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233715AbiIDSdo (ORCPT ); Sun, 4 Sep 2022 14:33:44 -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: quoted-printable 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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_s= ync *sync) struct hlist_node *tmp; struct dma_fence *f; int i; + hash_for_each_safe(sync->fences, i, tmp, e, node) { =20 f =3D 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; =20 hash_for_each_safe(sync->fences, i, tmp, e, node) { hash_del(&e->node); base-commit: e47eb90a0a9ae20b82635b9b99a8d0979b757ad8 prerequisite-patch-id: fefd0009b468430bb223fc92e4abe9710518b1ea --=20 2.34.1