Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp22723pxh; Thu, 7 Apr 2022 12:48:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKZ5w/pofqCQTkbRgoE5oYks4IzLwMN0Bfe2QB6NtiNzID9adkzBT86UhW0oGBasfaEL8D X-Received: by 2002:a65:63d9:0:b0:374:6b38:c6b3 with SMTP id n25-20020a6563d9000000b003746b38c6b3mr12661851pgv.195.1649360891853; Thu, 07 Apr 2022 12:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649360891; cv=none; d=google.com; s=arc-20160816; b=JKFmSNh5v1/bd7ox0F33BQUUGfQiXLO8EgxLpeZT2z+HKkRvAd/Urq27GT6EGnYDXY QvRYs6dCatt7M5dmq4AwiN+SH2rW156u5oWseL3TZy1BkwzFrFxG8Wv5zIonhwrND4Jz wjcMOFJkgy/iJZ3GALg7IBLio0O8LkFYx/tMv5M/cOxH+XZvyWfPowcsCNoR9dFj+DYI fBFQXe+LW9BbfQXfR8LEERG9cbvI1t6my0yMkwOIQjK5/1IQoPPrG/RrSBym+bPq1tPd BQQ1dtrrzBWRXiEWlaoWb9jb/8a3vGkcog1SN2ktXKdgDPVqtgO2JQ/ZCRONZghDP+kQ ++bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WZc922TCkE49F8hGZOnYik1JaLOlZX3dBUSjrkm78qo=; b=wNf/wUkGIOK1t6O0IAUFP69OqyMNuLVlc7EoFh1ymfLYFeCly3/87/nsVwfxxMDuOl Bgm7Q/4Bc6S2Uv5Yv0mwehFNlP9CoVcV7vul6TvvtIM5AYXx6oHFZ6maloZWmemcm0Di UQgMuUBFWirlBwcN1WMYDM95rbjAJ35wtK6uYHeeZwtlCRm8P0HVWBwn/RkqkRhKdO95 4zEJbCTBRK5lqXphUsC/Aui5Zw+Jji6ERqOykyoiyP9x7N76ARvbsMHIt7bXqxdzoG0U ilNkfCyUwjDY8JbQ7em9Veahrxi5jxvmcPVDGQeKUNYNFOSuXrwxgvzZDA19KRMTPgyd W+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ef8hjGCX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f4-20020a056a00238400b004faaaf18941si22131110pfc.8.2022.04.07.12.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 12:48:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ef8hjGCX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6020F21E526; Thu, 7 Apr 2022 12:20:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345783AbiDGQKU (ORCPT + 99 others); Thu, 7 Apr 2022 12:10:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbiDGQKR (ORCPT ); Thu, 7 Apr 2022 12:10:17 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D880A94D9 for ; Thu, 7 Apr 2022 09:08:15 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id w127so6068100oig.10 for ; Thu, 07 Apr 2022 09:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WZc922TCkE49F8hGZOnYik1JaLOlZX3dBUSjrkm78qo=; b=ef8hjGCXAvHCiEwP6/S3w3yGSEbo8Mowe/AtutAkNNHKu0/c/vnFP35yO+oTCmSXzv 7CcwjhjDaDUQBc7Qbw9hvKlzTLlSrsskExp4bs12YtSgM9cRoDazvi7w51bbpe2E0rvz sgOAHUj1aIDePV8roZ1gK6DDwg8Hj+hsfCHCn2tpUni/RrBz8aHMJfqUaJxl0T/pVaqa taEKsGaudGSREFpHiLeIaBB5n6PCsKOPnMBZPKbQSiz3myMpqjFk4NkCdq+VqC6Ld3HR a8Gvyp53Ju7Qiczm5KgjH4fBESrXXwgNmrWI/oAfbkInLUZM3JRJ1Y7hQiXTH1Ves/Fs OF+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WZc922TCkE49F8hGZOnYik1JaLOlZX3dBUSjrkm78qo=; b=zXUu36a05W7xjogNYMb6pPjzZ0YE1K2vO+DHktrfuFNPGkDt/GmQQk4sKr0F1QOE/y Eg4CAKrOBiNiq2a+FzDMCSg76OQj+ypBNqoIiy2ahE5HtM3HSUCbvfNOObFRKzh/GtZn EdHFue+uAEVXOt/1j36uDuz1cDMrWKnhX/CIHVSv4+t+VkmyCVDo8PPoPLRNmYEtdfXJ J3/mbHs+t8rEcqSO6joioQY2dNEMgouWzHP7iZW64tdUBVVtNujQ41CJSPr4yXRQwLqQ 2+9royF1k54kw8wYegf+qM+J0qQ0fHJ108Arr7+B2NvBp7uFTNtjM3461TpWkWPtAF4f qbtA== X-Gm-Message-State: AOAM531vzvK4Lam2ETOLicxEQv+6xxkd9Jvigy+Ago6DrJF2YiKeTEKz W0QfSUeiFVlN88bZtfvSmNDvzbunxs1nmIYXjPk= X-Received: by 2002:aca:6006:0:b0:2f9:c685:f4e2 with SMTP id u6-20020aca6006000000b002f9c685f4e2mr317231oib.200.1649347678620; Thu, 07 Apr 2022 09:07:58 -0700 (PDT) MIME-Version: 1.0 References: <1649311250-17077-1-git-send-email-baihaowen@meizu.com> In-Reply-To: From: Alex Deucher Date: Thu, 7 Apr 2022 12:07:47 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Fix indenting mistakes in dcn10_hw_sequencer.c To: Harry Wentland Cc: Haowen Bai , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , amd-gfx list , Maling list - DRI developers , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Actually this just causes another warning. Dropped for now. More below. On Thu, Apr 7, 2022 at 11:52 AM Alex Deucher wrote: > > Applied. Thanks! > > Alex > > On Thu, Apr 7, 2022 at 10:18 AM Harry Wentland wrote: > > > > > > > > On 2022-04-07 02:00, Haowen Bai wrote: > > > Smatch reports the following: > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2174 > > > dcn10_enable_vblanks_synchronization() warn: if statement not indented > > > > > > Signed-off-by: Haowen Bai > > > > Reviewed-by: Harry Wentland > > > > Harry > > > > > --- > > > drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 14 +++++++------- > > > 1 file changed, 7 insertions(+), 7 deletions(-) > > > > > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > > > index ee22f4422d26..3c338b85040c 100644 > > > --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > > > +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > > > @@ -2172,13 +2172,13 @@ void dcn10_enable_vblanks_synchronization( > > > if (master >= 0) { > > > for (i = 0; i < group_size; i++) { > > > if (i != master && !grouped_pipes[i]->stream->has_non_synchronizable_pclk) > > > - grouped_pipes[i]->stream_res.tg->funcs->align_vblanks( > > > - grouped_pipes[master]->stream_res.tg, > > > - grouped_pipes[i]->stream_res.tg, > > > - grouped_pipes[master]->stream->timing.pix_clk_100hz, > > > - grouped_pipes[i]->stream->timing.pix_clk_100hz, > > > - get_clock_divider(grouped_pipes[master], false), > > > - get_clock_divider(grouped_pipes[i], false)); > > > + grouped_pipes[i]->stream_res.tg->funcs->align_vblanks( > > > + grouped_pipes[master]->stream_res.tg, > > > + grouped_pipes[i]->stream_res.tg, > > > + grouped_pipes[master]->stream->timing.pix_clk_100hz, > > > + grouped_pipes[i]->stream->timing.pix_clk_100hz, > > > + get_clock_divider(grouped_pipes[master], false), > > > + get_clock_divider(grouped_pipes[i], false)); > > > grouped_pipes[i]->stream->vblank_synchronized = true; @Harry Wentland should this last statement be part of the if clause or the for loop? Alex > > > } > > > grouped_pipes[master]->stream->vblank_synchronized = true; > >