Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp650623rwo; Wed, 2 Aug 2023 01:44:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7IYRq6XzZNoo2MLUpYZTvYz6OphAi9QVsTQf9dGEfIRREWh2Iq5/TmWw7IcXAbHp23CYO X-Received: by 2002:a05:6a20:431b:b0:f0:50c4:4c43 with SMTP id h27-20020a056a20431b00b000f050c44c43mr18974233pzk.5.1690965850099; Wed, 02 Aug 2023 01:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690965850; cv=none; d=google.com; s=arc-20160816; b=jBBcbmeeCGZA8dEGYq6SvnxGEy2+0uFYFFe526bUwfKYY6WjqCICzMX6Jw7y71bmHx 1Wg6if/dXOkf6an2TyDCHaRzQJS5ao/SOqr+PMaAMVZ13pAaqYzVONBvnqPFTFJCLFoa N02zH4ANDiRxFiog7dfUEFdH42pHzcllcFQm+1QcH51i/2jsfIgK8DukHVp7fLMiMaiq GagDXTs3977UBwUpOSA8/r4XEkzIcS5n7zjvTguzhNJ4CxKFfSFp2AMcuPMWseNU/i1f BVUzlE+EJ7D3DImcsRZskqrKXjTNFzVLDGMAKHY2nI1zPYfQRtWLjNVDLHugGeSAVDPz aRtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=w/Ii+/hs34FqBQ+OHc4i/rjdKSKKn2wH/HZVyoxhXUs=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=DQKmRgim6++Ou0qk8ZRi0pCFte898Rz4BHSlkdqkNKsPK0kfKoslr7P8ZINlvPKCTi yPuumKP9ri/l8Bttq9naA9JAHI1017lsGgax2CUuCFZS/tIyPaMRiVG/TtsjAe6VRv9I VsvqQpAAXlAg0LR6qdscbrY23vE0jYThzBEFRzKLn3Jr1PywH2c3a9LuwmFvoyQHuwUE IEuiX6IJvKTqa/MD5+hlEIKxSOmnl7tkVnrBYA7aLMuCrC4V2wxrTxG/nz4u4wEK9XE/ aq0sxAGlsOlWiswbtvMRRM1xeepK77kI9oxmrg6WZhrqn990MONoGp5C7WJNaV2bV0JG vGig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a056a00270700b00665e0165510si10286215pfv.252.2023.08.02.01.43.56; Wed, 02 Aug 2023 01:44:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231897AbjHBH4S (ORCPT + 99 others); Wed, 2 Aug 2023 03:56:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232925AbjHBHzs (ORCPT ); Wed, 2 Aug 2023 03:55:48 -0400 Received: from out28-107.mail.aliyun.com (out28-107.mail.aliyun.com [115.124.28.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D778E213F for ; Wed, 2 Aug 2023 00:53:18 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09949107|-1;CH=blue;DM=|OVERLOAD|false|;DS=CONTINUE|ham_system_inform|0.051677-0.00259581-0.945727;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047207;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6d9036_1690962790; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6d9036_1690962790) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 15:53:12 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amdgpu: Clean up errors in vcn_v3_0.c Date: Wed, 2 Aug 2023 07:53:09 +0000 Message-Id: <20230802075309.13950-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Fix the following errors reported by checkpatch: ERROR: space required before the open brace '{' ERROR: "foo * bar" should be "foo *bar" ERROR: space required before the open parenthesis '(' ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c index b76ba21b5a89..1e7613bb80ae 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c @@ -1105,7 +1105,7 @@ static int vcn_v3_0_start(struct amdgpu_device *adev) if (adev->vcn.harvest_config & (1 << i)) continue; - if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG){ + if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { r = vcn_v3_0_start_dpg_mode(adev, i, adev->vcn.indirect_sram); continue; } @@ -1789,7 +1789,7 @@ static int vcn_v3_0_dec_msg(struct amdgpu_cs_parser *p, struct amdgpu_job *job, struct amdgpu_bo *bo; uint64_t start, end; unsigned int i; - void * ptr; + void *ptr; int r; addr &= AMDGPU_GMC_HOLE_MASK; @@ -2129,7 +2129,7 @@ static int vcn_v3_0_set_powergating_state(void *handle, return 0; } - if(state == adev->vcn.cur_state) + if (state == adev->vcn.cur_state) return 0; if (state == AMD_PG_STATE_GATE) @@ -2137,7 +2137,7 @@ static int vcn_v3_0_set_powergating_state(void *handle, else ret = vcn_v3_0_start(adev); - if(!ret) + if (!ret) adev->vcn.cur_state = state; return ret; @@ -2228,8 +2228,7 @@ static const struct amd_ip_funcs vcn_v3_0_ip_funcs = { .set_powergating_state = vcn_v3_0_set_powergating_state, }; -const struct amdgpu_ip_block_version vcn_v3_0_ip_block = -{ +const struct amdgpu_ip_block_version vcn_v3_0_ip_block = { .type = AMD_IP_BLOCK_TYPE_VCN, .major = 3, .minor = 0, -- 2.17.1