Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5474302rwb; Tue, 1 Aug 2023 03:16:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHmzevMslH/WOViz3YriBZ08owtnNBNfpBVn+t73L3KJRhIT297RcLN9D4o+hyiHde71BOx X-Received: by 2002:a05:6808:434b:b0:3a4:350e:b226 with SMTP id dx11-20020a056808434b00b003a4350eb226mr11013727oib.33.1690884984764; Tue, 01 Aug 2023 03:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690884984; cv=none; d=google.com; s=arc-20160816; b=KOiBaXzI4KLoZKZHRDqDQPbvewPAnY7WmHS8uQX3bqjc/ODkdYo9M/SGruo71VS8E+ 2/aPQBoy94GKAI16ZPs93wjppgKom0uMYIaTZ5s1YyZVFOLstr+ofSqhoC0h+4cO4oij rUmDcYoCDuasIJcWER1fTH5tffGzoXrXsLQxyQL48JFZuynVKn8YLsM5BROKq/OrYcQt 1qXkCHz9j3OgJsfXpSIoXNPabScJoM+zXYU3/MV/iXNYamptvJy4IfghFcQSUa5G6PT3 iczlS/p9TWpsf9+O4svYoEegR5ZjxkdlsqPwqDLxhJbp3vjBnZYkJRSP1Yir/ch6a2Do 9eCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=TeRUCZisexKWY0AsSTFyDYqCh+AH1W8UFkRoH2kJJM4=; fh=MCPWGPaGTCa3ip5jGXSWsjf0KyLA7R+7Ba6vasY8kRk=; b=TCHbvX35ur+mBPylmnBcoNrFNAodK0CYJL/RrbldlEX28kHpUffdgnzeH4X9uKRrpR ETOyHLlMcR/zSy9G7E3kDg1oOR0eOwPC7bWbGrWl+Gd46mN+XgunyT0Hym57HMfoAmvV xiXIJb+WdNWva+CImboaWmC3Cow5AjuMgT63DW+4025SQYp8KkzOowtk0ROdqqg+jtsw gXtoPPBlaOV8rg5GV7HIOXbljZAoPQXo3uq2LTNbMubyX/5jk4bP41O+EaIW46LcGvY0 X/8CvHJrT5kDl0m1xKHLTVwf0b/Um383MsxJJK6DfvoAScbBfjZwAosmrDFIukg8SI76 9eng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M3t69ejv; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fv4-20020a17090b0e8400b0026577f28dbcsi8290383pjb.45.2023.08.01.03.16.11; Tue, 01 Aug 2023 03:16:24 -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=@intel.com header.s=Intel header.b=M3t69ejv; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233308AbjHAJjk (ORCPT + 99 others); Tue, 1 Aug 2023 05:39:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbjHAJjQ (ORCPT ); Tue, 1 Aug 2023 05:39:16 -0400 Received: from mgamail.intel.com (unknown [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 730814C18 for ; Tue, 1 Aug 2023 02:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690882628; x=1722418628; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=cVFmk5CKy6gTo0w9aV0IK8bC22Agg5xvhy/Cu1YAVQE=; b=M3t69ejvNsRQSdeTGxvHXiCD+ThXlBdNlDqn9DVJdlmSH6WJGivzd6w2 5lcRqscu4lT/xWFkVkGyiq7721lr3kwLYX6x3cp4DwBIkrBKOR5c2nTiq lWGnnavYbtezPQ49dGRIovFDMDsIigZvn3J2TsKxqq765mpRiC8Z2XwMK LntjCgu+gcySF30BD+2AzSRau9/1/HU1JQnKNGk2gOQoCD8s4KzyrqTVZ +qgYQS/9sOXU0yrXJnWYkB2RSA50h3fkOVV/ktkLJoEmP9nczE6P/hClB SkBla2Cx21Ne4KWPIfFhDqdvjbbcvREQiVoDsfDEC5iRzXGOhakv/iTnY Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="368149823" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="368149823" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 02:36:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="722428493" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="722428493" Received: from igorban-mobl1.ccr.corp.intel.com (HELO localhost) ([10.252.36.188]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 02:36:49 -0700 From: Jani Nikula To: Ran Sun , alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: Ran Sun , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/amd: Clean up errors in processpptables.c In-Reply-To: <20230801091425.7181-1-sunran001@208suo.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20230801091425.7181-1-sunran001@208suo.com> Date: Tue, 01 Aug 2023 12:36:47 +0300 Message-ID: <87leevw1cg.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,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 On Tue, 01 Aug 2023, Ran Sun wrote: > Fix the following errors reported by checkpatch: > > ERROR: open brace '{' following function definitions go on the next line > ERROR: code indent should use tabs where possible > ERROR: space required before the open parenthesis '(' The commit message does not match the patch. > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c > index 1866fe20f9e2..f05f011c78be 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c > @@ -676,7 +676,7 @@ static PP_StateClassificationFlags make_classification_flags( > static int init_non_clock_fields(struct pp_hwmgr *hwmgr, > struct pp_power_state *ps, > uint8_t version, > - const ATOM_PPLIB_NONCLOCK_INFO *pnon_clock_info) > + const ATOM_PPLIB_NONCLOCK_INFO *pnon_clock_info) How about fixing *all* the style problems in the above in one go? How about sending these fixes in a threaded series instead of filling everyone's inboxes with individual patches? It's 30+ patches just today already. BR, Jani. > { > unsigned long rrr_index; > unsigned long tmp; -- Jani Nikula, Intel Open Source Graphics Center