Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5472970rwb; Tue, 1 Aug 2023 03:14:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4yEUFpWX5tkt7VQc5D+oNqRW02NlGKBBQ0Yb0rQNHGvFKErSTuq3ZkZE+gus+ckX0QKV0 X-Received: by 2002:a05:6a00:1893:b0:66f:7076:a5b4 with SMTP id x19-20020a056a00189300b0066f7076a5b4mr15248732pfh.7.1690884896220; Tue, 01 Aug 2023 03:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690884896; cv=none; d=google.com; s=arc-20160816; b=ZP0XgE8xvAYwxua6ukWiMPrisymkU1UNqQaqw6pwwXxgNX3y6cCdPKGyIbRJigbUAW MUDEsQXjF/5PW6DoiOcFcZNUQ3WlbjbqYEjFukcVcrrik/zL/A7LI9dKxuPcmpvK7raT jlo4W/J6sjo50sFGu30Ejgp8zouuxVTgJMZUbKrHy8BGe3xY/JBvjYDJrKmJoTu216gS rv922XXtPUXJVJOCiwFMUfsZI2W5TMh+oiCME2m4Ma1lNbRpaPvu1xx6oECvj1urDE0O gQl6/gH4Ews3zS/AktRSx4XA85I0XnodrgfiaZNboAU288T6UAA9RStpIAqgZkDjQndB r+Bg== 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=+d/ornRR5MwKuLDr+qBmudbgTGaTcHJ+jwz1s0TXZS0=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=oxaTQ148qIK4S0VHfP7OEpYsFqBE3ftP8a+iX+oM+Qkk8Ts8DzoE73zYiS9j7n7YAU XmC1kRIT+XmEBKGgYAC3lNoUnJWnnzN5mLNXcw0+L4KuX4C7VMDvEdrM4iEu4PNFep9O UTbIiB6lEohuxwvaX4JGYSiNsUpZitBsFi5Ep9B5xAw4EvvTiYYHAPt576Jho8kHUtk5 Ue8QGwIJg5ivNACm28MmpxzhpURn7mNotnhfVXQjgo1aatLd2AMrZR4077CnkvTYdIpO CXPRCYGCXBX7VfqvHkMqhqaEpJUcsb2JszNi9ps7GyQQIL+akQW6oalvRmMAMkUvK0P+ Kajg== 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 dc3-20020a056a0035c300b0065caa80ad8csi3142527pfb.398.2023.08.01.03.14.44; Tue, 01 Aug 2023 03:14:56 -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 S233218AbjHAJj4 (ORCPT + 99 others); Tue, 1 Aug 2023 05:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbjHAJjd (ORCPT ); Tue, 1 Aug 2023 05:39:33 -0400 Received: from out28-2.mail.aliyun.com (out28-2.mail.aliyun.com [115.124.28.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5F0D46B7 for ; Tue, 1 Aug 2023 02:37:16 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4581243|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.00723545-0.000549839-0.992215;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047207;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5rVQNr_1690882617; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5rVQNr_1690882617) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 17:36:59 +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/pm/powerplay/hwmgr/hwmgr: Clean up errors in hwmgr.c Date: Tue, 1 Aug 2023 09:36:56 +0000 Message-Id: <20230801093656.7761-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,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 after that '~' (ctx:WxW) ERROR: spaces required around that '||' (ctx:VxW) Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c index f2cef0930aa9..2b5ac21fee39 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c @@ -120,7 +120,7 @@ int hwmgr_early_init(struct pp_hwmgr *hwmgr) case CHIP_TOPAZ: hwmgr->smumgr_funcs = &iceland_smu_funcs; topaz_set_asic_special_caps(hwmgr); - hwmgr->feature_mask &= ~ (PP_VBI_TIME_SUPPORT_MASK | + hwmgr->feature_mask &= ~(PP_VBI_TIME_SUPPORT_MASK | PP_ENABLE_GFX_CG_THRU_SMU); hwmgr->pp_table_version = PP_TABLE_V0; hwmgr->od_enabled = false; @@ -133,7 +133,7 @@ int hwmgr_early_init(struct pp_hwmgr *hwmgr) case CHIP_FIJI: hwmgr->smumgr_funcs = &fiji_smu_funcs; fiji_set_asic_special_caps(hwmgr); - hwmgr->feature_mask &= ~ (PP_VBI_TIME_SUPPORT_MASK | + hwmgr->feature_mask &= ~(PP_VBI_TIME_SUPPORT_MASK | PP_ENABLE_GFX_CG_THRU_SMU); break; case CHIP_POLARIS11: @@ -195,7 +195,7 @@ int hwmgr_early_init(struct pp_hwmgr *hwmgr) int hwmgr_sw_init(struct pp_hwmgr *hwmgr) { - if (!hwmgr|| !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->smu_init) + if (!hwmgr || !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->smu_init) return -EINVAL; phm_register_irq_handlers(hwmgr); -- 2.17.1