Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3316127rwb; Mon, 7 Aug 2023 11:24:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMSbLv9jRkkYD3bMhJUJSTrzoeTkzEUkrRLJCJ/e9j6rQRoSWRZtm0HlcAbmUK9kIdEe0Q X-Received: by 2002:a17:902:988d:b0:1b9:e23a:f761 with SMTP id s13-20020a170902988d00b001b9e23af761mr9938656plp.63.1691432695527; Mon, 07 Aug 2023 11:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691432695; cv=none; d=google.com; s=arc-20160816; b=MuMSzKOCvskux39+PkMsB039Emt6Gd26aRydXVr2ojHX7n+eBWIcB4T9j3OFE6NH3+ CzRpEnsdKwnzCoBIQnDx1dMx1xfFQVNWRr4TpP097Is0w3bkX6gQ8vyLhMbIbUzbuzSr HEryCBme6iVQgEs6VbAzH3Uzwx2BP7gQGZGHIdnt5YT9XCqppMgRYU0keEpQtXIc+yKu KSBgt6G3bWhzbne/+r96eJORTVgyBbJmfdiNkfhiDoxW1lWUxJMUfbXY2MdJvqVgp9FV VRXCVZDIHrXGN4rDP554eDlcR4ofY12IO09gdsog6E6/0ISVKIpPiHB+k9No47wng+z0 mtig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=076JJ4vvpe4Hogv09ZSyczaDY6j365GFf7clQP3Kyy0=; fh=YwR8hmjC2QSif+72cT3/sIS32/1FMEJSAUJ+j+OuTzU=; b=vVePzCeNszDRkBq8YsUE49P+eHQn44ujugZu4OvSjNQahG2qJ3C8i40th5ZGvqA8mW yRPf9i6G2VsEKJ5uCE4o2I5I5OVbcFOfWIdgj9NdEpfjQ1i47qmbjj7ifVTmVhUrb9Zq +BNEZAqMBXP6ij+zmbMISw06svCRFvsvefMye2d3XNd94f/hGdiaNoeyhcGOPRaTUKQC S/K8cbFOEYqOEbzAGlJ2Djdsb07hzW9MEF+bFdXEZd0A/zrLLm1ZzRAoKNIAZXvcBt2F EbQSY/tRripkE1mVDCdkudZga5y7W6u6PZTt+2OUi1/EIDQyZZUFJNP9n6VXD40lCmLT 4nOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=GewKJ+7D; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a170902d2c700b001bbb83a182csi6163560plc.519.2023.08.07.11.24.42; Mon, 07 Aug 2023 11:24:55 -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=@gmail.com header.s=20221208 header.b=GewKJ+7D; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230523AbjHGRbv (ORCPT + 99 others); Mon, 7 Aug 2023 13:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjHGRbu (ORCPT ); Mon, 7 Aug 2023 13:31:50 -0400 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36160F9 for ; Mon, 7 Aug 2023 10:31:49 -0700 (PDT) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-1bb58b4c513so3543850fac.0 for ; Mon, 07 Aug 2023 10:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691429508; x=1692034308; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=076JJ4vvpe4Hogv09ZSyczaDY6j365GFf7clQP3Kyy0=; b=GewKJ+7D2HxtJUE/e7HkEFFricw8bVIBD/teJv7aIGFHXpP2gzVksmcN2MLIF+U+zJ 2Lav5ecR1WTKN0aY0PN9P4bINxdHc4iy2hDfuboyPTBsjEc/SVziNsL52Wcxg9gBdWUr Acsn3I/tVKkXyEHhbTNbFyBZUBMJaD9W4EzULF6BFsL1CL7i7RyyqotKpzti/ohQjmeI pVsUdgP/3qSThRXsHD9qqiPOSZMp/RzGGgM+N3vokzeTS311/Ky7e50BHYcVyBTD+9xo PhFWCvjJ3dunB+EgPwbHatoI2bNpcYNF6JecCNa4m3uvBlCrrGskk7T8u34LENzmJ1Je H5tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691429508; x=1692034308; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=076JJ4vvpe4Hogv09ZSyczaDY6j365GFf7clQP3Kyy0=; b=gKmHlIydykuCl1e8WMtU701CUNfH+nBlf8+HxhcpjmX/YFiiYO+9KAIQkkxIpiMTXY iSkgwT8QLl/mXGPivP/PduP25UciXqaz0q+gJoRP1VxcLFlw3hKyTl3RxBJx8qe1fCWI OrIVkdmIoGvhEGsCEqoB7uk/SWx7nzVVjGpG5bI5meSxIfzIPbZ31/jZwg7U1212wr/P O96AdPdhiS8+iSsaPdMew2qcDg5mt5kV8uaWTqz+DsmlpQD3YJss3HAzooaGUK9pkH9z 8LNYVRmpzKkDJ+5Y0xfUmY00bnSKphZu59eksx6SHg+Q4Hd5Qr1RNiGceNZqICDvM7ZV MSkA== X-Gm-Message-State: AOJu0YwX3VWaMJusKbVG0O/mHytz1RzDzWFOcaprg1RHt4wyeSDFr6Wd yQM/gnDvTeShoP7XDb0ri1U8NxQhstkH0ndOi3B0cQp+ X-Received: by 2002:a05:6871:6a9:b0:19f:2c0e:f865 with SMTP id l41-20020a05687106a900b0019f2c0ef865mr12265529oao.7.1691429508553; Mon, 07 Aug 2023 10:31:48 -0700 (PDT) MIME-Version: 1.0 References: <20230802074315.13688-1-sunran001@208suo.com> In-Reply-To: <20230802074315.13688-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 13:31:37 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Clean up errors in vcn_v4_0.c To: Ran Sun Cc: alexander.deucher@amd.com, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Applied. Thanks! On Wed, Aug 2, 2023 at 3:43=E2=80=AFAM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > spaces required around that '=3D=3D' (ctx:VxV) > 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_v4_0.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/= amdgpu/vcn_v4_0.c > index 6089c7deba8a..ef5b16061e96 100644 > --- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c > @@ -1139,11 +1139,11 @@ static int vcn_v4_0_start(struct amdgpu_device *a= dev) > if (status & 2) > break; > mdelay(10); > - if (amdgpu_emu_mode=3D=3D1) > + if (amdgpu_emu_mode =3D=3D 1) > msleep(1); > } > > - if (amdgpu_emu_mode=3D=3D1) { > + if (amdgpu_emu_mode =3D=3D 1) { > r =3D -1; > if (status & 2) { > r =3D 0; > @@ -1959,7 +1959,7 @@ static int vcn_v4_0_set_powergating_state(void *han= dle, enum amd_powergating_sta > return 0; > } > > - if(state =3D=3D adev->vcn.cur_state) > + if (state =3D=3D adev->vcn.cur_state) > return 0; > > if (state =3D=3D AMD_PG_STATE_GATE) > @@ -1967,7 +1967,7 @@ static int vcn_v4_0_set_powergating_state(void *han= dle, enum amd_powergating_sta > else > ret =3D vcn_v4_0_start(adev); > > - if(!ret) > + if (!ret) > adev->vcn.cur_state =3D state; > > return ret; > @@ -2101,8 +2101,7 @@ static const struct amd_ip_funcs vcn_v4_0_ip_funcs = =3D { > .set_powergating_state =3D vcn_v4_0_set_powergating_state, > }; > > -const struct amdgpu_ip_block_version vcn_v4_0_ip_block =3D > -{ > +const struct amdgpu_ip_block_version vcn_v4_0_ip_block =3D { > .type =3D AMD_IP_BLOCK_TYPE_VCN, > .major =3D 4, > .minor =3D 0, > -- > 2.17.1 >