Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5128447rwb; Mon, 31 Jul 2023 19:13:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFPaqQ2+jlFRo9dg8ANA+iQTPQqpIP7/YGfeBJSLRrZQlWe+ZT33TIwlXFbmbg8I/BOC9H5 X-Received: by 2002:a50:ef09:0:b0:521:d1f0:300c with SMTP id m9-20020a50ef09000000b00521d1f0300cmr1272027eds.23.1690856017246; Mon, 31 Jul 2023 19:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690856017; cv=none; d=google.com; s=arc-20160816; b=D9SbnlRtjfBA0sNjR2UMcimwCJ1wU5jYuzlqksEQ5ZhbSVf6LXkxMdCckk36XlxCox fb6z3OHrA1O5VnLrvtF7iThmW6ZwtWv6HJE3oKaV3Kra5gm1rV4gERPfQicTlNgIfuea rogJylp45LlL9UFWpOUC/wX6zVi7koaLGKk1puPBluKqHPQT4IZopnyIK21+tF8Qr5Hw lN2a1EyV4T31QrFKTdhbtRZpO24WKJEgxKSWo8MqjjmZYfk8V+1bWoM6rAT/QJwvibob HT84CaDO99ouqBu0iWJmIxR3G4Kw7ksrlbhmEqIYwb2AEibDJq20fyHSMyx6ivLEae/3 Voiw== 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=OG2XJtZFfSnysTKbKGnPNE+sERJlwbCGpyHQHLid7Y0=; fh=J7QNKHPpGFqTnF4Sd/Sm1n2Dgd9rjSFY8dy+MJfVUl0=; b=PhPzF0YPuKPQJfSe9jsGSg+YUJyCuevnvGekobXiCRFxE/kZ+RvhaBkHhRGwdRUMx4 PWMZ2nvpsWe29Q/l4oRRpBAtqLI3U3i08dUE/5lQNkpWQpYsz9px3NOb+QwYZ7PXSjk7 20U9Y1aGhRrEOlP0HSK5QYX1UoGgumVDwXD1PKRx0pNuD6i5hNGK1VsYOXCsQ4C4CU7F 2Tx1y11SHTKof0Vql6qGa3sgvDP8Ixr/FEmoq9jM1VDKf13QORJJtiyE9sP5f84rlvU+ uBwUUjpQgVTzNMkmLtLEs+v0KGaFxg6cpF5gH5iiMdUoE7CadB5uF6YjY4dBmxRHIIfu SI7Q== 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 s5-20020a056402164500b005225855ee7csi7141163edx.170.2023.07.31.19.13.12; Mon, 31 Jul 2023 19:13:37 -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 S230440AbjHABMu (ORCPT + 99 others); Mon, 31 Jul 2023 21:12:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjHABMs (ORCPT ); Mon, 31 Jul 2023 21:12:48 -0400 Received: from out28-121.mail.aliyun.com (out28-121.mail.aliyun.com [115.124.28.121]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F355C10E3; Mon, 31 Jul 2023 18:12:46 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07465538|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0922483-0.000575133-0.907177;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047192;MF=sunran001@208suo.com;NM=1;PH=DS;RN=8;RT=8;SR=0;TI=SMTPD_---.U5BYNI3_1690852358; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5BYNI3_1690852358) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 09:12:41 +0800 From: Ran Sun To: apw@canonical.com, joe@perches.com, alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/pm: Clean up errors in smu_v11_0.h Date: Tue, 1 Aug 2023 01:12:37 +0000 Message-Id: <20230801011237.3913-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_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED 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: that open brace { should be on the previous line ERROR: code indent should use tabs where possible Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h | 7 +++--- scripts/checkpatch.pl | 23 -------------------- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h index d466db6f0ad4..1b4e0e4716ea 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h @@ -67,8 +67,7 @@ static const __maybe_unused uint16_t link_width[] = {0, 1, 2, 4, 8, 12, 16}; static const __maybe_unused uint16_t link_speed[] = {25, 50, 80, 160}; static const -struct smu_temperature_range __maybe_unused smu11_thermal_policy[] = -{ +struct smu_temperature_range __maybe_unused smu11_thermal_policy[] = { {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000}, }; @@ -96,8 +95,8 @@ struct smu_11_0_dpm_table { }; struct smu_11_0_pcie_table { - uint8_t pcie_gen[MAX_PCIE_CONF]; - uint8_t pcie_lane[MAX_PCIE_CONF]; + uint8_t pcie_gen[MAX_PCIE_CONF]; + uint8_t pcie_lane[MAX_PCIE_CONF]; }; struct smu_11_0_dpm_tables { diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 85a0598bf723..528f619520eb 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -7449,23 +7449,6 @@ sub process { } # Complain about RCU Tasks Trace used outside of BPF (and of course, RCU). -<<<<<<< HEAD -<<<<<<< HEAD - if ($line =~ /\brcu_read_lock_trace\s*\(/ || - $line =~ /\brcu_read_lock_trace_held\s*\(/ || - $line =~ /\brcu_read_unlock_trace\s*\(/ || - $line =~ /\bcall_rcu_tasks_trace\s*\(/ || - $line =~ /\bsynchronize_rcu_tasks_trace\s*\(/ || - $line =~ /\brcu_barrier_tasks_trace\s*\(/ || - $line =~ /\brcu_request_urgent_qs_task\s*\(/) { - if ($realfile !~ m@^kernel/bpf@ && - $realfile !~ m@^include/linux/bpf@ && - $realfile !~ m@^net/bpf@ && - $realfile !~ m@^kernel/rcu@ && - $realfile !~ m@^include/linux/rcu@) { -======= -======= ->>>>>>> d7b3af5a77e8d8da28f435f313e069aea5bcf172 our $rcu_trace_funcs = qr{(?x: rcu_read_lock_trace | rcu_read_lock_trace_held | @@ -7482,14 +7465,8 @@ sub process { kernel/rcu/ | include/linux/rcu )}; -<<<<<<< HEAD - if ($line =~ /\b$rcu_trace_funcs\s*\(/) { - if ($realfile !~ m@^$rcu_trace_paths@) { ->>>>>>> 4d2c646ac07cf4a35ef1c4a935a1a4fd6c6b1a36 -======= if ($line =~ /\b($rcu_trace_funcs)\s*\(/) { if ($realfile !~ m{^$rcu_trace_paths}) { ->>>>>>> d7b3af5a77e8d8da28f435f313e069aea5bcf172 WARN("RCU_TASKS_TRACE", "use of RCU tasks trace is incorrect outside BPF or core RCU code\n" . $herecurr); } -- 2.17.1