Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3387818rwb; Mon, 7 Aug 2023 12:41:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHAZ4MBSphKGxHa1ctM5+53GcUO6d4KVbsc2hjdXSrPeWtetiwKckutC/nY211MA8m2ds9g X-Received: by 2002:a17:903:1cb:b0:1bc:5bdd:1f38 with SMTP id e11-20020a17090301cb00b001bc5bdd1f38mr7730955plh.3.1691437298274; Mon, 07 Aug 2023 12:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691437298; cv=none; d=google.com; s=arc-20160816; b=taju5X35bhv5hKP+JytpDfI4b2Mq38MqsVoIr8l7djQYiqbNqe+yC1e0Z1HLQG9KK8 QtZRYtK+PX//gYwixrYv3D6oWyTzaiqiril5X8tXpFjuPN+GZnjPqJJ2aX97kCp9nO2b hxbpnF3QwLtWqZ5OR+jrp+9er/7Unczp+2/KqVkcZ895h3Z/VkPRp12qU7ZtJYYoT/Qk D0hGLmBrOFEphr3zg3t9JttAkal43pawNsGJgNguHmWYH/NneVy3Q/Q/BlNbiWt8vu0H Uf66DyQQc5vI1cBv3OANQ+8J6iZh3eytIF3llpGlgHEvq59M68Q3n7tgSMg16P8arv/K x/sA== 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=8YvbsUJg0/MEi6rG+cUpAFNtn5WudefBqhX2T15JqJg=; fh=YwR8hmjC2QSif+72cT3/sIS32/1FMEJSAUJ+j+OuTzU=; b=ftaV+Iju5v8Mqa8DBK5JMk99QUNYjpnvAYrP6FpkMHPs4dAYb7C4hCwtfUmmEVbrdD un065+ZQcNO5j5tkICepYeUUqr+8wQhXdCbhsYI7N1CCq7D0XqEHdixx3XJPU7+tOd1a JlSEDy9WEKu9X0nGpATOsITCZyluD1v32ZjQne02OuI/Kf3na2fMtNDlHAb9gy3kQye7 rnyoOmlair4ELda1Aele7Pp00vMsKqQRnY5IyQAF6jp3xxrn3QjMLj2edY0m6deglV2X a0+fbZcVUa1D5x1oOacllv9Vt49IczcAb7BG0ML1H4038XLqvQ4k4fiZaptQcE4FHhmN VnKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ed1lHmdV; 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 z18-20020a170903019200b001bbb3495d23si6276773plg.496.2023.08.07.12.41.26; Mon, 07 Aug 2023 12:41:38 -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=ed1lHmdV; 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 S232225AbjHGRWV (ORCPT + 99 others); Mon, 7 Aug 2023 13:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232181AbjHGRWU (ORCPT ); Mon, 7 Aug 2023 13:22:20 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD5819B6 for ; Mon, 7 Aug 2023 10:22:01 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1bbaa549bcbso3627950fac.3 for ; Mon, 07 Aug 2023 10:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691428907; x=1692033707; 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=8YvbsUJg0/MEi6rG+cUpAFNtn5WudefBqhX2T15JqJg=; b=ed1lHmdV820f17A4KM8vckb+CtmsQK+h8Na/No7yS6n8rRy92/oVzmqcGTuD+zm0j5 c6KO4c4ZAHIaUqTRd4Jq/QxdveAcVWJMMhhXWnoiUuHV2uDzmoWABAL4jtoVrkdieqdX DvdPuBSLG/NC+MaWVyhOnGIflKlJDmuptwkQKdi8xPk31LKQJYvTavYfbLb+05F5TGJ8 FgvhEDtssv3/jG168DMsO04k23WP8HE2zjqt51dC5n3nl2zUvWVvqvLJUcahraUXX5ha Yztyi+jc5YLth7eArr7EZogtQITjFmR+8RcUYRJV51nHiFAkCVB2Lr+PZiu6uJ7ayhG/ KVtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691428907; x=1692033707; 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=8YvbsUJg0/MEi6rG+cUpAFNtn5WudefBqhX2T15JqJg=; b=J1RgBesD24eXG4tlWsv05auCXrX+663ZCsVxU9yVhj+Gw47bRzCwGPMle8HXJ7KwCV ugVoWnGnPvYuEY+kAD5gvoAIK+kyNtRs0dfYuM0dOmF2ttdkuOCv/54bYCXJKdEuQzlL WpV59umRAJ8d7MZKGLx5DU+6N3/ygWMZvuuvJGG+tg4twAV5v2EKWidGgi2p9Jd8Dpyi u0VSHGPKs+r5x9j6JkuiRv71R+vK5kGrP0TU/pDXSEPB3xZurQMdgXeQyy7WDq2MzQVQ CUQ01ZnsKaCzfJebUDYZnkbx3uow6JJxI3Xg4qhkqf6gtatPXcayWxFJsDzKOveCCnag UreQ== X-Gm-Message-State: AOJu0YxtDevzzB83RjQGJItdZzrrFNp9AVbMhb8Hi1N/1i1EHKJtf339 QMMtpnu1bpcm125cR7fyW5v1l+GHkN9tBdf+YtY= X-Received: by 2002:a05:6870:c1cb:b0:1bf:4a66:d54f with SMTP id i11-20020a056870c1cb00b001bf4a66d54fmr11790002oad.56.1691428907356; Mon, 07 Aug 2023 10:21:47 -0700 (PDT) MIME-Version: 1.0 References: <20230802065518.12271-1-sunran001@208suo.com> In-Reply-To: <20230802065518.12271-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 13:21:36 -0400 Message-ID: Subject: Re: [PATCH] drm/amd: Clean up errors in amdgpu_cgs.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 Already fixed. On Wed, Aug 2, 2023 at 2:55=E2=80=AFAM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: switch and case should be at the same indent > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 64 ++++++++++++------------- > 1 file changed, 32 insertions(+), 32 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/am= d/amdgpu/amdgpu_cgs.c > index 456e385333b6..fafe7057a8c9 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c > @@ -163,38 +163,38 @@ static uint16_t amdgpu_get_firmware_version(struct = cgs_device *cgs_device, > uint16_t fw_version =3D 0; > > switch (type) { > - case CGS_UCODE_ID_SDMA0: > - fw_version =3D adev->sdma.instance[0].fw_version; > - break; > - case CGS_UCODE_ID_SDMA1: > - fw_version =3D adev->sdma.instance[1].fw_version; > - break; > - case CGS_UCODE_ID_CP_CE: > - fw_version =3D adev->gfx.ce_fw_version; > - break; > - case CGS_UCODE_ID_CP_PFP: > - fw_version =3D adev->gfx.pfp_fw_version; > - break; > - case CGS_UCODE_ID_CP_ME: > - fw_version =3D adev->gfx.me_fw_version; > - break; > - case CGS_UCODE_ID_CP_MEC: > - fw_version =3D adev->gfx.mec_fw_version; > - break; > - case CGS_UCODE_ID_CP_MEC_JT1: > - fw_version =3D adev->gfx.mec_fw_version; > - break; > - case CGS_UCODE_ID_CP_MEC_JT2: > - fw_version =3D adev->gfx.mec_fw_version; > - break; > - case CGS_UCODE_ID_RLC_G: > - fw_version =3D adev->gfx.rlc_fw_version; > - break; > - case CGS_UCODE_ID_STORAGE: > - break; > - default: > - DRM_ERROR("firmware type %d do not have version\n= ", type); > - break; > + case CGS_UCODE_ID_SDMA0: > + fw_version =3D adev->sdma.instance[0].fw_version; > + break; > + case CGS_UCODE_ID_SDMA1: > + fw_version =3D adev->sdma.instance[1].fw_version; > + break; > + case CGS_UCODE_ID_CP_CE: > + fw_version =3D adev->gfx.ce_fw_version; > + break; > + case CGS_UCODE_ID_CP_PFP: > + fw_version =3D adev->gfx.pfp_fw_version; > + break; > + case CGS_UCODE_ID_CP_ME: > + fw_version =3D adev->gfx.me_fw_version; > + break; > + case CGS_UCODE_ID_CP_MEC: > + fw_version =3D adev->gfx.mec_fw_version; > + break; > + case CGS_UCODE_ID_CP_MEC_JT1: > + fw_version =3D adev->gfx.mec_fw_version; > + break; > + case CGS_UCODE_ID_CP_MEC_JT2: > + fw_version =3D adev->gfx.mec_fw_version; > + break; > + case CGS_UCODE_ID_RLC_G: > + fw_version =3D adev->gfx.rlc_fw_version; > + break; > + case CGS_UCODE_ID_STORAGE: > + break; > + default: > + DRM_ERROR("firmware type %d do not have version\n", type)= ; > + break; > } > return fw_version; > } > -- > 2.17.1 >