Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5155609rwb; Mon, 31 Jul 2023 19:56:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4z2PnMgwFB5KE3E/j37aUsdBUirwIy9G79F66jAisH+Qo11GUc3bFAY36TgoqOXDs0PWL X-Received: by 2002:a05:6808:3b1:b0:3a7:1e98:80ad with SMTP id n17-20020a05680803b100b003a71e9880admr7916512oie.9.1690858572990; Mon, 31 Jul 2023 19:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690858572; cv=none; d=google.com; s=arc-20160816; b=azChn5+GvM0NPEw6n9M4jyixzzfsR/Akzb5ML1EqiYUkfYQM52gDYq4wxvYqKP21zP kR/e9pGzhY4tVLdhPx0/wGZag46TN4xYwCNMo0MAvSAPHR9fLs2t0g9aCICErF31Ctl6 9K5Ux/FgYuF7k3IzPnK/SBM21IKf4c7rr+Xdu8R51vUzGPsrjef04s81jVWUjjBQirFv BTOvoFLX5YUJODpleYRPGJj8PaWKZHGHueg+wQKDc9z6ktenxD1R7huiInUGh9ek5XeK hOnxb+762VEpDBmmRIMPLls5cLb7BHXFiIcZiG5Uv7206Nl/IGfcp3yWjwRYGrduk6Fv 3+/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=RGQtJutPpXuFIh6EV8t/+t10Is5AjG0cvydcmJzAuAI=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=zVZPQOuU4zi3wD/4FCkxISHxRBdjH70az2d8OWMkABprNa6e4qsfnp60KR3nTUD13F Z1lVTP3tRXk3PAEdbP8JAl3sTjp2M6/ejbqjtaLX//nOeQRxk0tdaDoEyuq2E9RVJ/R/ NV0sU4zjvLST7MoX5iHC+UOlnarRHig4Db4daTLbvgElsEno/anZwXKR9qjDlkkiTimb qlv6NHzVjSy0jvDcnB85s+WByB+KuGDNXckjkjHtnPC+bCW9zHv9/RkrRdyMGu2f0995 6Nzo80vaV/HUUYZb/yMAHvF7XKl3XU2VTVAw3eGhSpcOKo1jpWn0PuV2kBeUCK1pmSJF nE8g== ARC-Authentication-Results: i=1; mx.google.com; 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 bs7-20020a632807000000b00563fbc00001si7993297pgb.267.2023.07.31.19.56.00; Mon, 31 Jul 2023 19:56:12 -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; 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 S229568AbjHACLl (ORCPT + 99 others); Mon, 31 Jul 2023 22:11:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230356AbjHACLj (ORCPT ); Mon, 31 Jul 2023 22:11:39 -0400 Received: from out28-195.mail.aliyun.com (out28-195.mail.aliyun.com [115.124.28.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D12A61A3 for ; Mon, 31 Jul 2023 19:11:37 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1111192|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0123702-0.000752526-0.986877;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047204;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5FqyPn_1690855890; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5FqyPn_1690855890) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 10:11:32 +0800 From: Ran Sun To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd: Clean up errors in smu_v13_0_5_ppt.c Date: Tue, 1 Aug 2023 02:11:29 +0000 Message-Id: <20230801021129.4458-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Fix the following errors reported by checkpatch: ERROR: space prohibited before that ',' (ctx:WxW) Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu_internal.h b/drivers/gpu/drm/amd/pm/swsmu/smu_internal.h index ceb13c838067..bcc42abfc768 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu_internal.h +++ b/drivers/gpu/drm/amd/pm/swsmu/smu_internal.h @@ -61,14 +61,14 @@ #define smu_feature_get_enabled_mask(smu, mask) smu_ppt_funcs(get_enabled_mask, -EOPNOTSUPP, smu, mask) #define smu_feature_is_enabled(smu, mask) smu_ppt_funcs(feature_is_enabled, 0, smu, mask) #define smu_disable_all_features_with_exception(smu, mask) smu_ppt_funcs(disable_all_features_with_exception, 0, smu, mask) -#define smu_is_dpm_running(smu) smu_ppt_funcs(is_dpm_running, 0 , smu) +#define smu_is_dpm_running(smu) smu_ppt_funcs(is_dpm_running, 0, smu) #define smu_notify_display_change(smu) smu_ppt_funcs(notify_display_change, 0, smu) #define smu_populate_umd_state_clk(smu) smu_ppt_funcs(populate_umd_state_clk, 0, smu) #define smu_enable_thermal_alert(smu) smu_ppt_funcs(enable_thermal_alert, 0, smu) #define smu_disable_thermal_alert(smu) smu_ppt_funcs(disable_thermal_alert, 0, smu) #define smu_smc_read_sensor(smu, sensor, data, size) smu_ppt_funcs(read_sensor, -EINVAL, smu, sensor, data, size) #define smu_pre_display_config_changed(smu) smu_ppt_funcs(pre_display_config_changed, 0, smu) -#define smu_display_config_changed(smu) smu_ppt_funcs(display_config_changed, 0 , smu) +#define smu_display_config_changed(smu) smu_ppt_funcs(display_config_changed, 0, smu) #define smu_apply_clocks_adjust_rules(smu) smu_ppt_funcs(apply_clocks_adjust_rules, 0, smu) #define smu_notify_smc_display_config(smu) smu_ppt_funcs(notify_smc_display_config, 0, smu) #define smu_run_btc(smu) smu_ppt_funcs(run_btc, 0, smu) -- 2.17.1