Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp29357pxh; Thu, 7 Apr 2022 13:01:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRGqVDRPpOCPH4RkE3/YMg434XU1ILeah0XuAKAv+diqI+FYba1ZCfhhusjXCcEv4zvSIn X-Received: by 2002:a17:902:8f94:b0:151:64c5:7759 with SMTP id z20-20020a1709028f9400b0015164c57759mr15703515plo.4.1649361710192; Thu, 07 Apr 2022 13:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361710; cv=none; d=google.com; s=arc-20160816; b=p24K3NlaG++68464A8x+RU7pKOR9C4h0hadzwq33Uc5MdV2K+Tw6T9DRmgtrPhq0BY 52OwLsQC87+xOSO3zppxSReENeW9YrchGq9NSpclQbuorZ0rGoiQDXPdKmowMNW41FqG H16z4jZ3NTwuILwVNZWJpOB7fKIJ7OVnuBj4D/SAiHF0azDOjet+0jdiSS8GHpiif4pF qz2eA+OXArplxzDYHd3eyNB9BpDxKlwUKthTRrSgaRnuoZrrGmxc50QUWF1QDW3/vGFs vWdSw6wfgj9VgvfbhPNstXgnL+hmteVbS9gu5b7CByvVMgZ1Vw/uORe+LzxAgaGOfXH1 rRhA== 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=IhwtG6Mpj++51CRDNyUdO0/f3e0kql8qZIvoDM7w7AM=; b=dnulvnCSu0dxe4gGP/63Nln2xIIm2Qt5a1iv3dMUEE6b6gKvaOpgZ4XDQh7UkKP6it tH6PfXlsDy4Vcr/OQ0xuzCH5rez0x6M/cTHOXdtmSortxFlWTsGkKPaU6S/XMWzPkeNT wSj8RJsTVWFXoL6+TzbJP7u0aX5qqqGFxrgB/RcRlgbLTTAUBGh3oUr58ntjYh2mrZby Vy5IbOncWdGKdJ7QliFz60o3qIU12JWtfK1tY0OVrt7WaWY38f6KKcURasCJ9lUy9AUy lXlZ0B0qsZkDijhyCoJcGfUTtnkEPxW3GOQqRwiTMuPY2pMifq3g0aVb/Fzp8jtZ8mDT ubqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p0tm3Dr9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id x22-20020a63db56000000b003820b4fb922si19255780pgi.56.2022.04.07.13.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:01:50 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p0tm3Dr9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 A581028AB1A; Thu, 7 Apr 2022 12:27:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346431AbiDGRjg (ORCPT + 99 others); Thu, 7 Apr 2022 13:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbiDGRjf (ORCPT ); Thu, 7 Apr 2022 13:39:35 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C988460F1 for ; Thu, 7 Apr 2022 10:37:32 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id e4so6378821oif.2 for ; Thu, 07 Apr 2022 10:37:32 -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=IhwtG6Mpj++51CRDNyUdO0/f3e0kql8qZIvoDM7w7AM=; b=p0tm3Dr9M8k6vxeTj5K1WpvlPdo+2WU/3HP7qUd5b0y88h3H8cdU8Q2RgYI0a6S/jD VbaunWWhJHD29s4I+9QEJQXkEh8/YV/71c7W1B+Qo+a6y4VWHElYokC3kPyWMyf2J4Mn 53SFi5qJ1u9qFCYXP6gHqf/blhHEe6QlmfYUWrTvvQLzOHLzk0AZWnYJ2ENsE9ZWcq0s kiYMDqY0eCT9/zOicOkts0cC9ONJ3ftGQiUvTUXqoOiIZJDlar0mSmOTiF6EKx8GYj4h aSAP/XynSSnX7ZyikTsT/QQ/S99IojYHYyNuxy9fhBWuo+6J8Z1ivVotUVMtX5k5T2zL ngpg== 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=IhwtG6Mpj++51CRDNyUdO0/f3e0kql8qZIvoDM7w7AM=; b=QdSv3jKo2+FRPChWcsll/DGGuTRYJJ1oTKUn2r8jGD/NVgGQso+609sdUpY8iDGDLM ZU5wYOvnM57rAFpN6NJ140/uHZPN5Un+1GqQEjcoqO56o8vekH27qDBC+qy9gVIXiRqH LQjYGmp6onWag2UcbQzaRk2TpLFZBBpgEGTbdzgnXDWiDNBrY/IuSBlxauA1jsoDbiwP PrRRP6y956OBctnVWd36r4BF5uxGyYBzeBaGOTWN5nO38JorGRaD0y/KvKrq8I13fD76 OqaaGQLIEzUR+vxmgRmcnAMi2o/eB6lrEtmYrWehWdDOhl3YnrWSS21KH949nEFwUt0O 4Few== X-Gm-Message-State: AOAM533cGa7UGMKA/Ip0EGRXMZBzpSjMu/w7DDjQJ4IxsgKaSOt5G+m2 joAJI1/Lo64XttxIhB72nw2MzaG87oKtOzxR8qzgC1mu X-Received: by 2002:a05:6808:2390:b0:2f9:c718:80e0 with SMTP id bp16-20020a056808239000b002f9c71880e0mr428611oib.253.1649353052202; Thu, 07 Apr 2022 10:37:32 -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 13:37:21 -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 On Thu, Apr 7, 2022 at 1:32 PM Harry Wentland wrote: > > > > On 2022-04-07 12:07, Alex Deucher wrote: > > 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? > > > > It should be part of the if clause. Can one of you send a patch to fix that up? Thanks! Alex > > Harry > > > Alex > > > >>>> } > >>>> grouped_pipes[master]->stream->vblank_synchronized = true; > >>> >