From nobody Tue Sep 9 01:01:46 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22763C0015E for ; Mon, 24 Jul 2023 07:49:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231262AbjGXHta (ORCPT ); Mon, 24 Jul 2023 03:49:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230441AbjGXHtW (ORCPT ); Mon, 24 Jul 2023 03:49:22 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B5BF1A4 for ; Mon, 24 Jul 2023 00:49:16 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R8XNl6M0XzBRx58 for ; Mon, 24 Jul 2023 15:49:11 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1690184951; x=1692776952; bh=vVJ3bb7oMBjSr1+hADUC18TYJ4B 8OELU7j0ImBjB188=; b=AEIBg110l0BbLzgJd6nPytBbDM69Vbgy04pv8tHC2YP hNelaIt3d/efZCLpNVu/CzCqwfxjFQ/hjstWAXCGq5WAWGmYXkN1czq9OurgBVLd r70n0WF3bW6QJrrN/BJVzUWkm3QKyD27XXg4CbrGAUbkk+waLvNE6Fyj3xp6IQ3N MAprRne3s0xPaNi8JmM/K+WMZPG5113fYPo352pC1Edn0gK6q5xDdKRQR5Jg7C8/ OMdS6QOsKdJWg5W8skBWHWnb67ZT1Uzl7kt13816WTP3STUdROg3loqRhhG0Uqp1 5kQThPqSImZ/3HZT81FPVTn5GzWayXGJXiqGoZ71NWA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id c5wqdFTEt1V6 for ; Mon, 24 Jul 2023 15:49:11 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R8XNl31xyzBHBPw; Mon, 24 Jul 2023 15:49:11 +0800 (CST) MIME-Version: 1.0 Date: Mon, 24 Jul 2023 15:49:11 +0800 From: sunran001@208suo.com To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/pm: Clean up errors in arcturus_ppt.c In-Reply-To: <20230724074800.9099-1-xujianghui@cdjrlc.com> References: <20230724074800.9099-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: sunran001@208suo.com Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8"; format="flowed" Fix the following errors reported by checkpatch: ERROR: "foo* bar" should be "foo *bar" ERROR: spaces required around that '=3D' (ctx:VxW) ERROR: space prohibited before that close parenthesis ')' Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c=20 b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c index 3ecb900e6ecd..b26e9ac1ac30 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c @@ -691,7 +691,7 @@ int smu_cmn_feature_set_enabled(struct smu_context=20 *smu, #undef __SMU_DUMMY_MAP #define __SMU_DUMMY_MAP(fea) #fea -static const char* __smu_feature_names[] =3D { +static const char *__smu_feature_names[] =3D { SMU_FEATURE_MASKS }; @@ -927,7 +927,7 @@ int smu_cmn_get_metrics_table(struct smu_context=20 *smu, void *metrics_table, bool bypass_cache) { - struct smu_table_context *smu_table=3D &smu->smu_table; + struct smu_table_context *smu_table =3D &smu->smu_table; uint32_t table_size =3D smu_table->tables[SMU_TABLE_SMU_METRICS].size; int ret =3D 0; @@ -969,7 +969,7 @@ void smu_cmn_init_soft_gpu_metrics(void *table,=20 uint8_t frev, uint8_t crev) struct metrics_table_header *header =3D (struct metrics_table_header=20 *)table; uint16_t structure_size; -#define METRICS_VERSION(a, b) ((a << 16) | b ) +#define METRICS_VERSION(a, b) ((a << 16) | b) switch (METRICS_VERSION(frev, crev)) { case METRICS_VERSION(1, 0):