From nobody Thu Dec 18 04:52:59 2025 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 2AB3FEE49B0 for ; Wed, 23 Aug 2023 09:50:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236143AbjHWJuU (ORCPT ); Wed, 23 Aug 2023 05:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236165AbjHWJtd (ORCPT ); Wed, 23 Aug 2023 05:49:33 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCAEEEE for ; Wed, 23 Aug 2023 02:47:34 -0700 (PDT) Received: from chenxuebing$jari.cn ( [125.70.163.142] ) by ajax-webmail-localhost.localdomain (Coremail) ; Wed, 23 Aug 2023 17:47:09 +0800 (GMT+08:00) X-Originating-IP: [125.70.163.142] Date: Wed, 23 Aug 2023 17:47:09 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "XueBing Chen" To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amdgpu: Clean up errors in clearstate_ci.h X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Message-ID: <489e5ccd.62a.18a21ca6f2a.Coremail.chenxuebing@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDHZD+d1eVkAnGQAA--.477W X-CM-SenderInfo: hfkh05pxhex0nj6mt2flof0/1tbiAQAMCmTl1A4AAQACsf X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Fix the following errors reported by checkpatch: ERROR: that open brace { should be on the previous line Signed-off-by: XueBing Chen --- drivers/gpu/drm/amd/amdgpu/clearstate_ci.h | 24 ++++++++-------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/clearstate_ci.h b/drivers/gpu/drm/a= md/amdgpu/clearstate_ci.h index c3982f9475fb..e6a46aa38cf4 100644 --- a/drivers/gpu/drm/amd/amdgpu/clearstate_ci.h +++ b/drivers/gpu/drm/amd/amdgpu/clearstate_ci.h @@ -21,8 +21,7 @@ * */ =20 -static const unsigned int ci_SECT_CONTEXT_def_1[] =3D -{ +static const unsigned int ci_SECT_CONTEXT_def_1[] =3D { 0x00000000, // DB_RENDER_CONTROL 0x00000000, // DB_COUNT_CONTROL 0x00000000, // DB_DEPTH_VIEW @@ -236,8 +235,7 @@ static const unsigned int ci_SECT_CONTEXT_def_1[] =3D 0x00000000, // PA_SC_VPORT_ZMIN_15 0x3f800000, // PA_SC_VPORT_ZMAX_15 }; -static const unsigned int ci_SECT_CONTEXT_def_2[] =3D -{ +static const unsigned int ci_SECT_CONTEXT_def_2[] =3D { 0x00000000, // PA_SC_SCREEN_EXTENT_CONTROL 0, // HOLE 0x00000000, // CP_PERFMON_CNTX_CNTL @@ -513,8 +511,7 @@ static const unsigned int ci_SECT_CONTEXT_def_2[] =3D 0x00000000, // CB_BLEND6_CONTROL 0x00000000, // CB_BLEND7_CONTROL }; -static const unsigned int ci_SECT_CONTEXT_def_3[] =3D -{ +static const unsigned int ci_SECT_CONTEXT_def_3[] =3D { 0x00000000, // PA_CL_POINT_X_RAD 0x00000000, // PA_CL_POINT_Y_RAD 0x00000000, // PA_CL_POINT_SIZE @@ -522,8 +519,7 @@ static const unsigned int ci_SECT_CONTEXT_def_3[] =3D 0x00000000, // VGT_DMA_BASE_HI 0x00000000, // VGT_DMA_BASE }; -static const unsigned int ci_SECT_CONTEXT_def_4[] =3D -{ +static const unsigned int ci_SECT_CONTEXT_def_4[] =3D { 0x00000000, // DB_DEPTH_CONTROL 0x00000000, // DB_EQAA 0x00000000, // CB_COLOR_CONTROL @@ -682,17 +678,14 @@ static const unsigned int ci_SECT_CONTEXT_def_4[] =3D 0x00000000, // VGT_GS_OUT_PRIM_TYPE 0x00000000, // IA_ENHANCE }; -static const unsigned int ci_SECT_CONTEXT_def_5[] =3D -{ +static const unsigned int ci_SECT_CONTEXT_def_5[] =3D { 0x00000000, // WD_ENHANCE 0x00000000, // VGT_PRIMITIVEID_EN }; -static const unsigned int ci_SECT_CONTEXT_def_6[] =3D -{ +static const unsigned int ci_SECT_CONTEXT_def_6[] =3D { 0x00000000, // VGT_PRIMITIVEID_RESET }; -static const unsigned int ci_SECT_CONTEXT_def_7[] =3D -{ +static const unsigned int ci_SECT_CONTEXT_def_7[] =3D { 0x00000000, // VGT_MULTI_PRIM_IB_RESET_EN 0, // HOLE 0, // HOLE @@ -927,8 +920,7 @@ static const unsigned int ci_SECT_CONTEXT_def_7[] =3D 0x00000000, // CB_COLOR7_CLEAR_WORD0 0x00000000, // CB_COLOR7_CLEAR_WORD1 }; -static const struct cs_extent_def ci_SECT_CONTEXT_defs[] =3D -{ +static const struct cs_extent_def ci_SECT_CONTEXT_defs[] =3D { {ci_SECT_CONTEXT_def_1, 0x0000a000, 212 }, {ci_SECT_CONTEXT_def_2, 0x0000a0d6, 274 }, {ci_SECT_CONTEXT_def_3, 0x0000a1f5, 6 }, --=20 2.17.1