Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3670208rwo; Mon, 24 Jul 2023 14:59:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2rOKDXY3L3+vYwxvXwAPPlquERv0onA+oSwWk6nyx8zNpStK3LRNw4aBb8WKLIVwHId7w X-Received: by 2002:a17:902:ab85:b0:1b8:a19e:a3d3 with SMTP id f5-20020a170902ab8500b001b8a19ea3d3mr11765741plr.52.1690235953408; Mon, 24 Jul 2023 14:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690235953; cv=none; d=google.com; s=arc-20160816; b=L8UkKJIdSm5YhJUQEXcVnEjN4KLYUPZUKrCFfNLkNNEc4UoF2ozx0ok3U//jHIXs1W pi0CvVH4hunUVaeSeCPTrIut0jh5baAgj6pccPg9ib5ly7w7WBIg0wFIoH06grjQZBx2 9KtB88wsW+w1jQVQBRXpYO6nXBT0RhYLWJXvf+p8h9EDL8uRi2CkMArIvTNzemho5DIz wt5dc3LskDBHxcp3Hg4OEqJsONEhrhCoolpk73E2xuQf4CfZpdW6r87CKcNa89YFkMYO 5EbklYroyUwCxQRJr5kwd+Q1r+fJnx7Ye4h2v6KwR+qjHCcToJKJYn7xCPpMbQHws9bM QRlQ== 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=1JxNZk8MsPm0PckOwS8aqqo0tEETYMartUX8cUScZv8=; fh=5uMgb3FjuzEN2hx+/gHTXgNLDhaZ51PB3bSZEXlWkNo=; b=hhyoUCCn6eU2gmAWcZQc6MSnHIdt3oRCSD/3mNb42gMCykwim4lMka1ds6lAZ41ZHH r2J4Ylj9Qw9piKPuzqmtSTxki8aQyf+T4oowr2avfJ9dC7ZHWudiXPcLGReoGSD1hjIk SB50DP7w8sgihUkVKCWichUehhrGsGVvUKRwmqiWN8J7gTykhheuWsCdz+27hbjPyq0E ZnPM9x6EqRS4bgHoJpWTPAQY+2Cpgew0podXQYqXgtf8X9JUWrHfGhr04lsTe1ynvW4d mColjE61QI2vu7wuhsDXGjDZJ4mZ5qpP42XpXgkwwDIzm7u0/zlGug+L3we/SZ7w/YDw gnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=sNy0k9jV; 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 d15-20020a170902cecf00b001b89ba65f3dsi10847245plg.193.2023.07.24.14.59.00; Mon, 24 Jul 2023 14:59:13 -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=sNy0k9jV; 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 S231343AbjGXVtu (ORCPT + 99 others); Mon, 24 Jul 2023 17:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbjGXVtt (ORCPT ); Mon, 24 Jul 2023 17:49:49 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6251F10EF for ; Mon, 24 Jul 2023 14:49:48 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-6b9b835d302so3016634a34.1 for ; Mon, 24 Jul 2023 14:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690235387; x=1690840187; 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=1JxNZk8MsPm0PckOwS8aqqo0tEETYMartUX8cUScZv8=; b=sNy0k9jVu5XXThEW87lo7iGgQec96HT5eqtk7ZO4iOPcVT/rw22tK5w2E6TVRPIRq4 0ozNHkWU/koSWcd6ZBb9QdtYXHX6UsYdumyrQEJ7+5z3+J+vrlgHQWwyF1IDE+9ks9F5 5n6H2SkNJyCk+UCDlRAmo/hrUsIgT4mqxlPxJqWEYVUYecDNAdFFenUfrCVqTyIoYxeS /DucwDuBJTsiUNeTLhTlyMxCrfkTi5BAIxC8Qsds8+gyYR6H0onJECKKDcDWfNGIcOGI k8outEnb27us/xzGcHi3iHf+/NwZn/XU4QMlWbfP7Pa/g5upGjqGacpTI2lGTZ1iQD+R V9+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690235387; x=1690840187; 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=1JxNZk8MsPm0PckOwS8aqqo0tEETYMartUX8cUScZv8=; b=kH7WQQwocOUPQl+9S97eP9Mat+R5YWn17aWd6quAEhpT5ip7W8eSQxcrQMBe6pcCA2 oeiovrJsUvL9ls49L8FeFOghJuquiu3A5KlskRkCl3IwCoSZJy82Ny/uXsVffgZPd7az 7YcbQK8xNPu38JxQRwVZMUvrgWMiple8AqfcMyAgPStR+Hnp3LABm0ja4QrIdKFlF/4F LnCz2Sy3ByhlOJ9N1QasqqJwWAFqDOn7Vn3O1FwMgqji4Q29d/vXVfLRGkqx7/nsUw81 qwroVbj2BhjDeo2GtJmBbdz1ddo+FjozEyXo+UQNSNGnIhqxiG29rLkC0toxh3gRY7iH 22rA== X-Gm-Message-State: ABy/qLZE7pn5RU6P/tOBQV+C4qNErzR4HMIStMMNESLCK19U5YT2kX+K hAkqWLgEcnP6WNnJ4ywB6Iz9HEd/kKwsteCvrHeAhm3N X-Received: by 2002:a05:6830:1d4a:b0:6b9:b8fe:bf73 with SMTP id p10-20020a0568301d4a00b006b9b8febf73mr6263188oth.7.1690235387724; Mon, 24 Jul 2023 14:49:47 -0700 (PDT) MIME-Version: 1.0 References: <20230724074800.9099-1-xujianghui@cdjrlc.com> In-Reply-To: From: Alex Deucher Date: Mon, 24 Jul 2023 17:49:36 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: Clean up errors in arcturus_ppt.c To: sunran001@208suo.com 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_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, Jul 24, 2023 at 3:49=E2=80=AFAM wrote: > > 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 > 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[] =3D { > +static const char *__smu_feature_names[] =3D { > 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=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, > uint8_t frev, uint8_t crev) > struct metrics_table_header *header =3D (struct metrics_table_hea= der > *)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):