Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp981028iob; Fri, 13 May 2022 18:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBt7iofRr+RnmOKDyCIK0ziQVX6UhDdzprYE2S7C9v6HjV8WB3SjbnyvPs+pAlLkFfwbA1 X-Received: by 2002:a7b:c5d6:0:b0:381:4127:84d3 with SMTP id n22-20020a7bc5d6000000b00381412784d3mr16907738wmk.24.1652491719397; Fri, 13 May 2022 18:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652491719; cv=none; d=google.com; s=arc-20160816; b=FfCblEeyf0yRNwojQY3NCQMtdPMNCRXzgPxnNk/N87Iwk+mu5nV+6La37rHSAYTl9c GFf1QOTb4QvxaKkbvBtFJ5poxPuy1D6JjUpABwJB3RzN7VAM7XELAenKPR7TISrjVKRz Kp2SvYyP8GmuWw+uTIhKOy401ET2M4IAkhjZiwNH42T+IL9gqljrcCdP4uHhT1T4Agw4 q17gnEl9omGOgIS6twA+5845dLZMnlGd7UbKl6bLCBNrJXLR0ve4cPeHsecsVz3uZxCu F4ue6u3dYir7dr0OHvCuLsGOcDwJAknfZQaLSJ7krKMw5KwpSiHPTPEaoUe++ze0Hb/Z jWaw== 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=e7inaUSclrf0VoHqtvyXb/+X2/367hf5aKqzQDTPP0w=; b=ZMUpamAOITiI7b5vbszutCE77kaxxg9NpzZM6fLgh7akww0P2Fj48/6pS/imm2z3hV wbEZcwO28+H+ugJthzZPzJhLNjnqTEZGxl3qAxDUgYYb3WRQfYzimqbpPOPTtVnt2f20 h57mJrirpAFsM9EhF8Me9Nh4enntZEstrr5SPb/CUN2fW550tYR34smAoBlq40TZCp7W wxl0L6kfV/u6Su6XilaIYVUIFGJHj71GAX0ziX9yqI5SvaDMk669lHgUrLMM4icTpK6x UPuVZl2Y5AGiUCw1fdH1vYjh51n1+ybfLJSf6rs7CQqtt2hV8a87w2xvUvi5ixE6chWg R5dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dmrJnjeU; 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 y6-20020a5d6206000000b00203e90192cdsi3361640wru.81.2022.05.13.18.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:28:39 -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=dmrJnjeU; 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 B19AB3F005A; Fri, 13 May 2022 16:57:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378135AbiEMQ5q (ORCPT + 99 others); Fri, 13 May 2022 12:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234848AbiEMQ5o (ORCPT ); Fri, 13 May 2022 12:57:44 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D3AF1408E for ; Fri, 13 May 2022 09:57:43 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id m6-20020a05683023a600b0060612720715so5348210ots.10 for ; Fri, 13 May 2022 09:57:43 -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=e7inaUSclrf0VoHqtvyXb/+X2/367hf5aKqzQDTPP0w=; b=dmrJnjeUII3S5RbtkSzGhvHYK+zHcs0jNahICu8kyZal4PwidiPCR8MXTLSss19D9e xaSsvyZmh9pAVCzBKCjqPupfbsCBVc4oD8fiZIY78PAdar7S2x1o6H2dQN/PHuS4/+Ge mFf/j+mmuCNN776nELbHkivXdWsaqtFw5q8tbEST9hUvoOyEawC1CHHbtFCwOFetptVl nsOJviRovcwSWCHChEFQDxCGlhU67YZ8JQgbUhkEovWbK0Ddj2tTMyBXE6VH/NXsjPil 28y376u5hCKOEkhz4pdKFUgpTomLaMmumQF9GVYcwQ+IJkp6nH+CJzIXNgWLODambtnD oWlw== 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=e7inaUSclrf0VoHqtvyXb/+X2/367hf5aKqzQDTPP0w=; b=RoZAFazF5Z6ag0ZqXuisDfeNfKvCsGmR14iky6UGx8hk8X9IYdW1nvGJzw0lTEZK0b FPspXiFRBiR9JfK7ExASSv+FXclFUaktbBcXcvwxsgxjiJHjTuGuMB4HKV+GANv/dWz0 AKJFzr7wonP+16WXkUzNGanIjWtCESIY9kJRiKwCeEuP2mCyOnjUGKBE44UI01zexjSe x1dUG4LX5/0tOQi/ooYT39C+M2l+5UpX7en6pVthHXJsVxtAxHst8iAnqXQmK5ped3hp 96zN/dEc0EXnjLksoupC7qAyKBknff/FUbcctNXGfPGKwvUcrzcQZGa/FMlDevwGiUTl ikdQ== X-Gm-Message-State: AOAM530DRNUQyN7+BFe7xk3fBnQmmK+4f4MXK5iaGIfxaqCzwJ2J0bEi FCXSICN+p8zuUd13eTveweEFNyTALkxf3o2PBi8= X-Received: by 2002:a9d:195:0:b0:605:eb43:5b84 with SMTP id e21-20020a9d0195000000b00605eb435b84mr2216769ote.357.1652461062958; Fri, 13 May 2022 09:57:42 -0700 (PDT) MIME-Version: 1.0 References: <20220512071934.119922-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20220512071934.119922-1-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Fri, 13 May 2022 12:57:31 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: clean up some inconsistent indenting To: Jiapeng Chong Cc: "Deucher, Alexander" , Dave Airlie , xinhui pan , Abaci Robot , LKML , Maling list - DRI developers , amd-gfx list , Christian Koenig 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 Applied. Thanks! Alex On Thu, May 12, 2022 at 3:19 AM Jiapeng Chong wrote: > > Eliminate the follow smatch warning: > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9687 > amdgpu_dm_atomic_commit_tail() warn: inconsistent indenting. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > index e2b57cf6506c..a92cfb055c15 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -9681,9 +9681,10 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state) > dm_enable_per_frame_crtc_master_sync(dc_state); > mutex_lock(&dm->dc_lock); > WARN_ON(!dc_commit_state(dm->dc, dc_state)); > - /* Allow idle optimization when vblank count is 0 for display off */ > - if (dm->active_vblank_irq_count == 0) > - dc_allow_idle_optimizations(dm->dc,true); > + > + /* Allow idle optimization when vblank count is 0 for display off */ > + if (dm->active_vblank_irq_count == 0) > + dc_allow_idle_optimizations(dm->dc, true); > mutex_unlock(&dm->dc_lock); > } > > -- > 2.20.1.7.g153144c >