Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp181199rwo; Fri, 21 Jul 2023 10:10:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlHrV1l4Vf9wcILQhfzLWn1gq0XGgaRaX3lVcP4WZEwagd+NB/CRPJlxp7rfoBDGBenq0wpl X-Received: by 2002:a19:6d16:0:b0:4f8:4177:e087 with SMTP id i22-20020a196d16000000b004f84177e087mr1654706lfc.47.1689959423794; Fri, 21 Jul 2023 10:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689959423; cv=none; d=google.com; s=arc-20160816; b=dlSmliYmA/g5UGF6vYbFSCUuTg7eKEr0HILz/lqX+M5kSXRT+tU49sUpkgxqw1CAhA 8zBuqidoFr/CcZx4u6+5XuPF7n/VDaTqdl1hgoWafh0Xa2Ns81Skh+hq0o7ssJXfJG9w 2tx43lrEW2nq0Tl95AnY3NM8KyVMw85YmTln7JtQb2UifvYbIX4aVOAQUhwhcA16OKRB pHsK66OOYxo7dUBrRy3fdrbMuPLVr8yZx2gCA6K3maCOE4BgVnRzLdr6G1LcbMalJYzq +F6Z2PyMAT0+Y1l1vgyjYT6R3KqhYUAyNxHyIfgjh4hbL06tGEjqDz8ZebNduPIOsMnP x8OA== 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=r5EvHH1DtEeFzSe/qfbeuuYUsnqICJDx2+XgzP0/NPs=; fh=5uMgb3FjuzEN2hx+/gHTXgNLDhaZ51PB3bSZEXlWkNo=; b=NkzM7XkmCNtxlftBAxMvKurlziu2KQPCcxgRrr5Pdag88/uJ+tzCLI3+8ih8IG0nRl A4mkzvuYPFic7m38MAG4dWM2xhVFPHfwCU0v+AOGD5a0Cgm9dSuL8QLOFZD5JFhcLy7J yhJxUYYIGvt5VNZ2G6Fu7tS4NJuUjUBVWJdgcCyW+DRwEcGX8XmdYYAMvQLJa3NVU19f HgMlZr04FlY48HJKFljMwecwWUFkKzEqIHLX4n6wvjNUbipSk9RQoQWUtuJyaCoMEcsC H98XBUd+acgZlwctxGAq7s7iiSZ0cpWG3pLO2g4hfngjQY+wYZkW2xbituCqBWaKV73B P/2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=QbJzX9iZ; 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 l4-20020a056402124400b0051e22dd4640si2545740edw.471.2023.07.21.10.09.59; Fri, 21 Jul 2023 10:10:23 -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=QbJzX9iZ; 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 S232349AbjGUQAH (ORCPT + 99 others); Fri, 21 Jul 2023 12:00:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232322AbjGUQAG (ORCPT ); Fri, 21 Jul 2023 12:00:06 -0400 Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D82E30C7 for ; Fri, 21 Jul 2023 09:00:05 -0700 (PDT) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-1b049163c93so1343118fac.3 for ; Fri, 21 Jul 2023 09:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689955204; x=1690560004; 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=r5EvHH1DtEeFzSe/qfbeuuYUsnqICJDx2+XgzP0/NPs=; b=QbJzX9iZpCz6sryu/XX2sbkAG/F7Ftohnc5pzMW3hZqdW/isAkFf/g5ilsNkyhXlwK +WTjE6agHX3wYY3e5enOfq4YSz5wQEY9CCv88zbPaeL6+JuxwgEiu0ZtFnEgQeqJUnIu ODmlcdotKUQIm0/qUVERDiShiOp0OvTCy/HGzLzaIJ8jutp/H4QdeJf5TDDc7fqxHJDy foCNPc/MhMneu26q6uT+VSwHlNiSEBKvn55xkqBisEMH+Dib+cHmo893h9LCsOqkGqFg jo27fk99aa99nEnU0o9KX9m2XvKYfZGQnxtZNmB6z5mXpSvkym3wJJjOq27hAfXgPyUb WGDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689955204; x=1690560004; 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=r5EvHH1DtEeFzSe/qfbeuuYUsnqICJDx2+XgzP0/NPs=; b=Sn0Oai3I4v4gBRXixkqvA+hDuTdKo4EvR2/yDNHhF1vX0UNnSoD1pYGMSE5qCmCU/V w1vDDlT7PAckpOZCxmwphCpZXgb/Ra420ARuAzqjO0909UhICB60FNJah+AzGuak0uT5 60NIhfr2mkYUnnZqtQbxhg1DZB8wEkxcrbbvcS7u8TbOpHSnpCUtpO+/iTVYIxw95vHq JmNU97Xy2hGuC/tT4I6d1Zww097fvjdB6tx+/jUM25BmY0aweBb2uXwzcdwTw+i35msZ SYIUQNe/VUkl4VxoRGxp/m8Ub4wq9a0ZpfpOK1T5oo1DqVm1Ls0eDSRXRKc19uKSpExx mXrA== X-Gm-Message-State: ABy/qLZqwBE0M9nVH4I3Z9Up7MkHKjDM2deYnB+AzCT8BY5vtMZK/ti7 ZI1Z55oWaalbEVJPfOW7fbtXbOj3BR2qo34M0j2ezTJI X-Received: by 2002:a05:6870:46a2:b0:1ba:64a5:d2d1 with SMTP id a34-20020a05687046a200b001ba64a5d2d1mr2503528oap.20.1689955204629; Fri, 21 Jul 2023 09:00:04 -0700 (PDT) MIME-Version: 1.0 References: <20230721035225.4986-1-xujianghui@cdjrlc.com> In-Reply-To: From: Alex Deucher Date: Fri, 21 Jul 2023 11:59:53 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: open brace '{' following struct go on the same line To: sunran001@208suo.com 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_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, Jul 20, 2023 at 11:53=E2=80=AFPM wrote: > > ERROR: open brace '{' following struct go on the same line > The description doesn't match what the patch is doing. Alex > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h > b/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h > index ddc488251313..0cf564ea1ed8 100644 > --- a/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h > +++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h > @@ -429,10 +429,10 @@ int amdgpu_pm_load_smu_firmware(struct > amdgpu_device *adev, uint32_t *smu_versio > int amdgpu_dpm_handle_passthrough_sbr(struct amdgpu_device *adev, bool > enable); > int amdgpu_dpm_send_hbm_bad_pages_num(struct amdgpu_device *adev, > uint32_t size); > int amdgpu_dpm_send_hbm_bad_channel_flag(struct amdgpu_device *adev, > uint32_t size); > -int amdgpu_dpm_get_dpm_freq_range(struct amdgpu_device *adev,enum > pp_clock_type type, > - uint32_t *min,uint32_t *max); > -int amdgpu_dpm_set_soft_freq_range(struct amdgpu_device *adev,enum > pp_clock_type type, > - uint32_t min,uint32_t max); > +int amdgpu_dpm_get_dpm_freq_range(struct amdgpu_device *adev, enum > pp_clock_type type, > + uint32_t *min, uint32_t *max); > +int amdgpu_dpm_set_soft_freq_range(struct amdgpu_device *adev, enum > pp_clock_type type, > + uint32_t min, uint32_t max); > int amdgpu_dpm_write_watermarks_table(struct amdgpu_device *adev); > int amdgpu_dpm_wait_for_event(struct amdgpu_device *adev, enum > smu_event_type event, > uint64_t event_arg);