Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2810735rwo; Mon, 24 Jul 2023 01:21:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHaSDjYqJ/wXcLh4ldH7fDK0NYzcii//AN5hRoBTseyQiN5tG5PhhqqJUiXnYzFQMM+C/6n X-Received: by 2002:a05:6358:2799:b0:134:f326:e819 with SMTP id l25-20020a056358279900b00134f326e819mr8604535rwb.29.1690186879500; Mon, 24 Jul 2023 01:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690186879; cv=none; d=google.com; s=arc-20160816; b=Sz0335Aaxkzb+XoHfQXT3YwWVUxuzdc//yOF10BpG1qSfkZDj2Z2sZiq64Kg/+6MdM wW85/OTP44P6mEpWpibcRaczRejT/SpiShvRCEZ796T4tJ0TKzhxueA3L7xk9I1w03zi NzOJC+g0RSBnzQUiXroTWaCYGTZLJQzMTbX+4OsC0Qkr/grOeY7f3DF2X+jInrGSxqsC Uj1j9L+8k6AmiXtzkip56QMCUOg9kLfe7IubTzvQKHZl3F1zGS6CB2P9Djf7keFqn9Ns uy/XsNpdtD1FueNViy7hC3GOYQ1cQTzpKPdIJHRzYdtyjO14zm8ONut76bXKO0XnxX1o UezA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=yu10BZRrwJgTiG8kxnAt1IYJg2IaEjl4xnfp8LgrcYg=; fh=7mrb+jEz4ldW4HYDrM78dc1rA6GIHF/xkKOCEiigzvE=; b=ULtV0iylf7WvLFo9GKGNKaq8f/evAlGzym8FEIeYKGdZ93XLzbigv/O/c2gGwZVLmq a7lugeNM4CRknCXtyKk8Y3nIaZP8RhAc0RFw2k234Np20V/cprhB2FU/B8B72dscl5LM k6nFroNUNf/ADxTaE/LLRXxePd42BBrqU36vNlEf+rtSDp8Xbtt/CGH0jCJ7JKyH7gf5 HNraEUTQTyz3wGQ/MJFuGWFS6XuvF+N73dmdgEp6wYGVblpcFP7nL6f4frcVh6zsHKtW kR6XmimlNYwMZ1vhMmBuRLedIZe1J20BtYxruWtyy2l9gSgEO9q6fBA/oeG25HwTyS32 jjmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@208.org header.s=dkim header.b=AEIBg110; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q193-20020a632aca000000b005636f6c7f56si8499817pgq.25.2023.07.24.01.21.06; Mon, 24 Jul 2023 01:21:19 -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=temperror (no key for signature) header.i=@208.org header.s=dkim header.b=AEIBg110; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbjGXHt2 (ORCPT + 99 others); Mon, 24 Jul 2023 03:49:28 -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-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fix the following errors reported by checkpatch: ERROR: "foo* bar" should be "foo *bar" ERROR: spaces required around that '=' (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 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 *smu, #undef __SMU_DUMMY_MAP #define __SMU_DUMMY_MAP(fea) #fea -static const char* __smu_feature_names[] = { +static const char *__smu_feature_names[] = { SMU_FEATURE_MASKS }; @@ -927,7 +927,7 @@ int smu_cmn_get_metrics_table(struct smu_context *smu, void *metrics_table, bool bypass_cache) { - struct smu_table_context *smu_table= &smu->smu_table; + struct smu_table_context *smu_table = &smu->smu_table; uint32_t table_size = smu_table->tables[SMU_TABLE_SMU_METRICS].size; int ret = 0; @@ -969,7 +969,7 @@ void smu_cmn_init_soft_gpu_metrics(void *table, uint8_t frev, uint8_t crev) struct metrics_table_header *header = (struct metrics_table_header *)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):