Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3266741rwb; Mon, 7 Aug 2023 10:36:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFs0WtXA5zvrh5l+WM1LWRc3O3LHks4Ex31P9MbWJuBHKs7QiNC1sjX+ga+IoR8K3+FqnNz X-Received: by 2002:a17:902:ecc5:b0:1b0:307c:e6fe with SMTP id a5-20020a170902ecc500b001b0307ce6femr9767303plh.10.1691429775049; Mon, 07 Aug 2023 10:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691429775; cv=none; d=google.com; s=arc-20160816; b=jZsIrPDgD0MhKc2iqtTxAY4LUmLqQsqxdwUcj4AqMqphFcinfMTmR3lIkGpDRnEIQ0 4orA/d6Ed9eeorIjAaeXXpLwxKRqbat1r+GAX2GKp28UcdoY/SiwETBOvLM2RdQzh8xW cnhxeY0LQUaxo/aSXz6qFTbDd5xiG8L0oKU6UREELODVLVYb7xY2tGmtLxtz1+p++KAJ VbdbLOF26lf+C0Tem2zB08FvMYWO/AZIWfYhTNbUCUMDvDzN6UDCP8IqMQNjzgO3/e1B 19wKPX1450x27WWUFPGeRCGPaWk70dcDwbZRIcL8i4JCsldOssrA9/qbE7kYfp8Rxbj7 3wQw== 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=GKi/ylxygovjlPf6mua/FLxbGKNsQH3//RWonl36ciA=; fh=YwR8hmjC2QSif+72cT3/sIS32/1FMEJSAUJ+j+OuTzU=; b=hi2jtf1P+tkgBSDNVzB9Ne6LoVuy02PLO+P44jVtHC4en6yQg7aCeR9PJCUknZRDqd jOTdtYIZFDQdiaeqWqgoJySRDmK0EKBrITQsYAWigB3cD8jllY7mV/xYZHOxZ2iwsKPA Y6jGVoxs95lZBzHU2de+iW04CUErd7s7JnXJIjRa1u6qZA0czTRn1xcaatoFv37/qcFl nNxw2lcFtix5LNk+OBzJ37TVT2mCJb2Bil/Zcqa4ypp1+dcQoQn7tJoOES3NYV2yZl8q eJuie4GmisAODdzGzocEQG0SoeMCJ5pQCW+VxdtgHgBrELaXmw/bUjssO+PtHHWIyr25 aR6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=dop4vKi1; 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 ky16-20020a170902f99000b001bbd2599ac7si5901097plb.53.2023.08.07.10.36.02; Mon, 07 Aug 2023 10:36:15 -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=dop4vKi1; 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 S231363AbjHGRBI (ORCPT + 99 others); Mon, 7 Aug 2023 13:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbjHGRBG (ORCPT ); Mon, 7 Aug 2023 13:01:06 -0400 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB4C410DC for ; Mon, 7 Aug 2023 10:01:05 -0700 (PDT) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1bfca0ec8b9so1164065fac.2 for ; Mon, 07 Aug 2023 10:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691427665; x=1692032465; 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=GKi/ylxygovjlPf6mua/FLxbGKNsQH3//RWonl36ciA=; b=dop4vKi12DYvQUGfzdjXRJMSibHsdYHfzugjMw30Qhcq8rhJ0uUxtgyLU89kfE6xBE cPNoBQzVg9AOxB6P8ThKPRKrc0T65ZSwdvl3hkF+hA+s/CfICmq0MnvC1p40OGckN1so idOP7uZg79K8T2vAD5zHeN+LbyyEZDyTTyX7Pk0XUHY30AJ1+k0j8OJiFaGJi67HZpYD SLx/jkZ+P/+o2lVT/P4M/iMWPzwP7G5LppwJPdwRennzPotgWzxCtuVr/0lCkf99Enmb 3PCDUPQelwgvvP8m9nSK8r2C2J3SAkHJUDRQIuwxxp9INKYH70d3x9HBqXNkmspJc3vy KKBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691427665; x=1692032465; 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=GKi/ylxygovjlPf6mua/FLxbGKNsQH3//RWonl36ciA=; b=P1yhhepiNs/x40Ci6OUoCgaF+Rnj4B0gUnrH/RFKNUv5gxEgAFW7PYnvqdYqa83CKn WV6orcdHcrIR0ZQB0qnD3Nsy13BkUUsxBLMGuSQjCph95O8ZDlVx4h6fKHOt6QDx4ACo rIt52ggw2pr3lPdiX05fNLo9C37a6UHGCxNLGrtibN4ECbqdx5YEn1YgfsQPCVSFk7TL wyPXUhaJcaNJltSnLQ6v7fD33PrTaAfYndyEW2te5UwmGZ7EUDPH+XrV7pjRo0CLKN6R t+CMdZt2EY8DC2n1wcilKG3AJojs1x4/htDgM+TT4XGPX2eKStUaF59WsHcZiEaM5DRU T6Dw== X-Gm-Message-State: AOJu0YyfJeX65Uk4zqEyIGUtL2zO3s1dmV5s1StFVxF+RjVeLlQxqzme qMilqPmHHJN/16GyJ/qWjeocEJFw9aIl9L4OIiQ= X-Received: by 2002:a05:6870:524d:b0:1bb:a264:a7ba with SMTP id o13-20020a056870524d00b001bba264a7bamr11346535oai.56.1691427665071; Mon, 07 Aug 2023 10:01:05 -0700 (PDT) MIME-Version: 1.0 References: <20230802015941.9124-1-sunran001@208suo.com> In-Reply-To: <20230802015941.9124-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 13:00:54 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: Clean up errors in smu75.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:59=E2=80=AFPM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: space prohibited before open square bracket '[' > ERROR: "foo * bar" should be "foo *bar" > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h b/drivers/gpu/d= rm/amd/pm/powerplay/inc/smu75.h > index 771523001533..7d5ed7751976 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h > +++ b/drivers/gpu/drm/amd/pm/powerplay/inc/smu75.h > @@ -224,8 +224,8 @@ struct SMU7_LocalDpmScoreboard { > uint8_t DteClampMode; > uint8_t FpsClampMode; > > - uint16_t LevelResidencyCounters [SMU75_MAX_LEVELS_GRAPHICS]; > - uint16_t LevelSwitchCounters [SMU75_MAX_LEVELS_GRAPHICS]; > + uint16_t LevelResidencyCounters[SMU75_MAX_LEVELS_GRAPHICS]; > + uint16_t LevelSwitchCounters[SMU75_MAX_LEVELS_GRAPHICS]; > > void (*TargetStateCalculator)(uint8_t); > void (*SavedTargetStateCalculator)(uint8_t); > @@ -316,7 +316,7 @@ struct SMU7_VoltageScoreboard { > > VoltageChangeHandler_t functionLinks[6]; > > - uint16_t * VddcFollower1; > + uint16_t *VddcFollower1; > int16_t Driver_OD_RequestedVidOffset1; > int16_t Driver_OD_RequestedVidOffset2; > }; > @@ -677,9 +677,9 @@ typedef struct SCS_CELL_t SCS_CELL_t; > > struct VFT_TABLE_t { > VFT_CELL_t Cell[TEMP_RANGE_MAXSTEPS][NUM_VFT_COLUMNS]; > - uint16_t AvfsGbv [NUM_VFT_COLUMNS]; > - uint16_t BtcGbv [NUM_VFT_COLUMNS]; > - int16_t Temperature [TEMP_RANGE_MAXSTEPS]; > + uint16_t AvfsGbv[NUM_VFT_COLUMNS]; > + uint16_t BtcGbv[NUM_VFT_COLUMNS]; > + int16_t Temperature[TEMP_RANGE_MAXSTEPS]; > > #ifdef SMU__FIRMWARE_SCKS_PRESENT__1 > SCS_CELL_t ScksCell[TEMP_RANGE_MAXSTEPS][NUM_VFT_COLUMNS]; > -- > 2.17.1 >