Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3383018rwb; Mon, 7 Aug 2023 12:36:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsUcy6CRgHF+t333+zaGpyG3KS06NF2G4CDTCuH/Fs6KPZUwcHa6vdH12loH7wySA/VLla X-Received: by 2002:a05:6a20:9152:b0:138:60e:9ba with SMTP id x18-20020a056a20915200b00138060e09bamr14303719pzc.29.1691436959718; Mon, 07 Aug 2023 12:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691436959; cv=none; d=google.com; s=arc-20160816; b=hMy0uXRa1tc7+uhZxWwDJ0MvVs3RlKswc4O4Ob/5+0wj29q1AUpsjApv9VxFC3rLgY kGe8IYrrt1q2DXCFZr6cSdoSAOrHGPh+0LmORgeZpyC0a2PnBLemnBaZzf+CnbELxSte 5Pm+18dy+gfQww7cEzLT2UfQPzsBTL8gLjuMxaTgnSzla41vece3RvOYLIThuTMRpb6X jFGTJWRGrVJmQrLLjuo7JVUEQxV7pSoqflcsDFdXPx9wz3/NtrSxtAMYjbSdjqOUH77M l4hP51/Wy0klH+FQ3bEn+bKwcxewlrzq1paXrePPXPFCbfX7XvYl8gAx5LyB2c/y9ZYJ 6dPw== 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=0FTYO6Q7g6DrRo+pdo61jCBivg9LaG2djlrLcvb9e1E=; fh=YwR8hmjC2QSif+72cT3/sIS32/1FMEJSAUJ+j+OuTzU=; b=IKaZvjwxftfLKkkO282K9TKIabEQQofYkt4kQYsccyqRbZPFbgySuOu/Wabhid4IAS RKvor4ZOEMziLp6WaQZETIBkhAfAoxtfKE6/LSp+YkTLWIc1h5Ob4ACGet6YN8YLM+/j kHoVoFwyrXUDNInBnPozUBTkiBujllRG6pKPagtLxpFdSGVWjfmPSugXP2Peq13AhlkK QKtZqPQMyD+f4MHijyztGCEgc5HHCfskdHNRgTNmE1uUO+Evjc/+0Os5wAiuQpZ4H/RH wFwgTq/eboSu5LwXaKR3+G8Vyfbyi2vWcZIWPQEYjsyKFavwz2n6g3TK9xt8iCuGY8Be /hdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Lv3vsBHq; 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 h18-20020a63f912000000b005641ddd0303si4262890pgi.596.2023.08.07.12.35.47; Mon, 07 Aug 2023 12:35:59 -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=Lv3vsBHq; 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 S231349AbjHGR1G (ORCPT + 99 others); Mon, 7 Aug 2023 13:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbjHGR1F (ORCPT ); Mon, 7 Aug 2023 13:27:05 -0400 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77A941A3 for ; Mon, 7 Aug 2023 10:27:02 -0700 (PDT) Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-56ca4d7079aso3255326eaf.0 for ; Mon, 07 Aug 2023 10:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691429221; x=1692034021; 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=0FTYO6Q7g6DrRo+pdo61jCBivg9LaG2djlrLcvb9e1E=; b=Lv3vsBHqQXgDi8AZ6brBOesEnAW28735Nxa6vHlPpXItg2y1F6s8v27fDHA/c6rVLh FkQSoVWAsoCX4bUSoBlXJkp02yNUpyKRoPtPD6+A6HOn68sUggPZ4jihh+EAyu8hAVgC VH6MlYE6NxRoXu8BFIV81La9ZA2X69s38Se3EV1FgvxKbRfJ1FEG6LgevcJlqyvV1DGV PqKQsZw2ZKd4mlf3FXWkUc3t/Jy2T8FwTP0RptR6gvMgAz5ilC8szOarnrYISVz+jv12 4Oz4c3FPLoMqfHS5a5LFP6sFqdGgxxTglFlaVcsGnZLMgeVKfcQeTKEscT8d5ub3OWO8 L5Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691429221; x=1692034021; 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=0FTYO6Q7g6DrRo+pdo61jCBivg9LaG2djlrLcvb9e1E=; b=l4QhilxqA4hgEyLB2lnx+7mI5Q6IKLFR7rcbLMTOCb06IEBnkw7mrDASXeoUf1Qxsq Dlt4bu63pTN2QBHZlxQIjLyvhbjLImgLF6ocoiFCRUGrDrpIR4YQQpz7rP8DMjZ6O5gn U8sNauv+oK0Hmgf/6f918aeFIKbt2OUJfDZ0k3sAYCttWMQRVbOiQyoJFvTDh8pLvYld gAehvm7QO79060azvvdHQ0O+gee0KjlBFmQ2fYzR3BHvBzXPYzzhz47yl1MGlqGi0VpG zwheDoVg8SyBaWgPAzYgohCB1biyAZQjw3nfE8//AIz3iXQoA/C83unFSJ2VR5tCyN5H bODg== X-Gm-Message-State: AOJu0Yx2TmOFprWYp0+PqI10cEuJbxNYcBkeUATSNrmvSOUVgUTrvghB n7dNTCEnnE9YWpkiIwBuoVGM+VSpWMtIw3mjJa8= X-Received: by 2002:a4a:3c5e:0:b0:56d:55b7:e99c with SMTP id p30-20020a4a3c5e000000b0056d55b7e99cmr9161465oof.1.1691429221611; Mon, 07 Aug 2023 10:27:01 -0700 (PDT) MIME-Version: 1.0 References: <20230802072316.12985-1-sunran001@208suo.com> In-Reply-To: <20230802072316.12985-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 13:26:50 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Clean up errors in amdgpu_atombios.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 Wed, Aug 2, 2023 at 3:23=E2=80=AFAM 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/amdgpu/amdgpu_atombios.h | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h b/drivers/gpu/d= rm/amd/amdgpu/amdgpu_atombios.h > index b639a80ee3fc..0811474e8fd3 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h > @@ -89,8 +89,7 @@ struct atom_memory_info { > > #define MAX_AC_TIMING_ENTRIES 16 > > -struct atom_memory_clock_range_table > -{ > +struct atom_memory_clock_range_table { > u8 num_entries; > u8 rsv[3]; > u32 mclk[MAX_AC_TIMING_ENTRIES]; > @@ -118,14 +117,12 @@ struct atom_mc_reg_table { > > #define MAX_VOLTAGE_ENTRIES 32 > > -struct atom_voltage_table_entry > -{ > +struct atom_voltage_table_entry { > u16 value; > u32 smio_low; > }; > > -struct atom_voltage_table > -{ > +struct atom_voltage_table { > u32 count; > u32 mask_low; > u32 phase_delay; > -- > 2.17.1 >