Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3296237rwb; Mon, 7 Aug 2023 11:05:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF01vPt2ikEzU3h966o3iN6nUmxaFAlRo423PYn9dSIOYXCWfTz7LSQCkG04O/NjwSg3OPR X-Received: by 2002:a05:6a20:7f85:b0:13e:427e:ff18 with SMTP id d5-20020a056a207f8500b0013e427eff18mr13032319pzj.62.1691431542171; Mon, 07 Aug 2023 11:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691431542; cv=none; d=google.com; s=arc-20160816; b=YW1TNtXnhZgVyXGj1SlUnprYHpMz17S8W4RbqrvrDGv1fjYQqh//XViB4DHJrlXcxK DFhrEnwgiKX46oMctTCE4cXcbaD+VvraaIBus/zy8K672vU4JYQ9W7vMOYSIAM6GZ4XG VjcL340Zz5u6CZrgJrt/vUuqvFhENtILTfYJQbzOUBlIfnYs4VKPcRYUok42wA11Uahn +qeSukAYHE0rqfny9CL6TvaqtFlm+ZvrHdQ49fbsB+WrTBzoJR65Oq6dlb+3j6yTFxKo I59MBpfEEvRAbhEg/B4SngMA13bTynPRFfVqRy5YlQC6EgJDX7wfKqsspCiKzFLTdHWG D5Kg== 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=wdIDxHlj3CBjEs4/nbCl29OQGxlIEXIjwPDyccsPxDE=; fh=YwR8hmjC2QSif+72cT3/sIS32/1FMEJSAUJ+j+OuTzU=; b=KsWXXTMcElpBwCWXdF5WwWGXusPe2Yz3RRJA0WYravy8JjzCVvaO8HKOKncz4OPzu4 s8xu8pfLydmAy8BNIlC/5hRQtjRLXSZ4ZBobn/IAnL3sapKZzjJnzkWp88TwdVhjT8a1 euuuOPrZ+ewdyC+hnYBpXlNYnOAFefWgArsxpvWW6WYIFGYwAFOUh910Ex18r+9//uh+ sP+332UHY6mlK0m3V8QnyXKd5EmXaK4jXc8EYZiGOdmbOCYMknvUsfdP3noLFJCiwEyJ w8JfUPgpct6Sipum9HoL89La8oELVJUUzr0zB63gEacUHfbWO4GLnT1e0PTlsohua72B afHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=andONpF4; 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 r21-20020a63ec55000000b0054f9f9b333csi5853763pgj.686.2023.08.07.11.05.29; Mon, 07 Aug 2023 11:05:42 -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=andONpF4; 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 S231856AbjHGQ6p (ORCPT + 99 others); Mon, 7 Aug 2023 12:58:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbjHGQ6k (ORCPT ); Mon, 7 Aug 2023 12:58:40 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 088B5210E for ; Mon, 7 Aug 2023 09:58:24 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6b9defb36a2so4491043a34.2 for ; Mon, 07 Aug 2023 09:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691427503; x=1692032303; 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=wdIDxHlj3CBjEs4/nbCl29OQGxlIEXIjwPDyccsPxDE=; b=andONpF4M/88tEP2nqehwpuHN7tQ3fImuVgkX8eWzlSKV2lc/RwxoVl8VmJ+UYCnEg A2m1Ix+2Imf1UdtHZTL34HJOrtIUX8TNly1xld4iUVqveSQTyAL0SpGbSyMyKC/Uc0XR WMQcMQmwirnQz84Hq7m2G40WowDjwGoTNP6yPVsDsx5AYXS0tooNBAq4onubGWjhCwT9 Q89Dt3yomRLyYM7myoltbdOy8uqHFGj90EojIyg7S915cS/qFabiUvF8qaHJz3RJf/sB 4qZADKs9BFyKsxUCmS90fa0pVMHQ4hSK9/cb3WJlRqO1nmtmgj1zmzIKPZI/mcy9Hjv9 iqyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691427503; x=1692032303; 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=wdIDxHlj3CBjEs4/nbCl29OQGxlIEXIjwPDyccsPxDE=; b=d/4ff6QOhO0BgG24kf01o2+inkgY3AelJO4NUI0y65FIb0qwCbIHyv+SEMon2WhDBL Qiukl8eijHIjQFLF9q7Nj8vaSYx+lJtwItCS9tk06j9QSFgNounHCMP2EEs9DjAfIQl2 iAMn2FdfiEhhZnaQXY21nH4zoaR6fWRU6PQyOnaTDbz2Xc45BuV3bry8rbhq0dKgLdpg 8SLstCSQ8qkw0pDgiO4tbrRNNJdjV4OQldNnLfkVMBx0/s+Jg11cbQwRVTJj20cWTxIN etZWO/CODZOTp/2PJFGyaz20qvOiEKHhv77krDvM/3uwUIqgNqVJqFRmB1tjbDBsWvnA 47/g== X-Gm-Message-State: AOJu0Yxq7tDrxztokoEESFeoOoRgkYm7e/MURL4fLqUKgJHatxtfj0Se oernSE3Cu9dKGBZX7VD+KD2TXJ1Gf9Kij7wfvSw= X-Received: by 2002:a05:6870:5694:b0:1bf:1246:4e8c with SMTP id p20-20020a056870569400b001bf12464e8cmr13106946oao.11.1691427503318; Mon, 07 Aug 2023 09:58:23 -0700 (PDT) MIME-Version: 1.0 References: <20230802013818.8766-1-sunran001@208suo.com> In-Reply-To: <20230802013818.8766-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 12:58:12 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: Clean up errors in pp_thermal.h 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 Tue, Aug 1, 2023 at 9:38=E2=80=AFPM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following struct go on the same line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/inc/pp_thermal.h | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/pp_thermal.h b/drivers/= gpu/drm/amd/pm/powerplay/inc/pp_thermal.h > index f7c41185097e..2003acc70ca0 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/inc/pp_thermal.h > +++ b/drivers/gpu/drm/amd/pm/powerplay/inc/pp_thermal.h > @@ -25,14 +25,12 @@ > > #include "power_state.h" > > -static const struct PP_TemperatureRange __maybe_unused SMU7ThermalWithDe= layPolicy[] =3D > -{ > +static const struct PP_TemperatureRange __maybe_unused SMU7ThermalWithDe= layPolicy[] =3D { > {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 9= 9000}, > { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000,= 120000}, > }; > > -static const struct PP_TemperatureRange __maybe_unused SMU7ThermalPolicy= [] =3D > -{ > +static const struct PP_TemperatureRange __maybe_unused SMU7ThermalPolicy= [] =3D { > {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 9= 9000}, > { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000,= 120000}, > }; > -- > 2.17.1 >