Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp55656pxh; Thu, 7 Apr 2022 13:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhQYWK5SKng+0QgpEIg/g1szHn7kkPIDt/iUXcGydgW6a2Oduq2Y2umYquP6vgrWXQeaR1 X-Received: by 2002:a17:90b:38cf:b0:1c9:c3e3:817 with SMTP id nn15-20020a17090b38cf00b001c9c3e30817mr18102610pjb.73.1649364585646; Thu, 07 Apr 2022 13:49:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649364585; cv=pass; d=google.com; s=arc-20160816; b=wgr3uWvchKSc6H5+jhLopLerLIQvo54OOsILHrVtD9SiNFuuYEOxxf3Il7dvF9BS4O pwwaIzhLpQudeNIhkxSqhwN3vAgxJYmV4rlbZ1p9fkG2VGiMj54roFiguAIq5Mz8arLT jIe506HacGaB9mOgispp3aDhACAtCKtZol0DX3c3QpdCtIxFv4jafsKC4jmyn/902QWg 2z7/k2/RZ4b/Hjt79Qvsh7BOI+x6dxIoexETxErljDuWwg/dfQrTIOkDbpCNcVYIDJyr 0Lm+oJir6BttKt1rSueTbg/IwtHkc24mD8RZduPszkR5HL7+H0YWnD/6u6oaoejy03Q9 ao3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=nL7Zlf06HnJeYBDy43Vz9tyqp+zvNXEe7zh9nRW39g0=; b=KdTijv9g0JcD3EFu2acIryp+iA1MVRmOidUfHjA9kEYECaZCy/bL8LRiLqbuI99l3O Ud2R1UpRg1iJlCOI93vaZ2EAQMJB62RawkgAP1kGsmPmKTZ9rW5tT3eMULRt9+NOjSf0 AdsJ3ScgF4/108Ey7IqIuEiqn+h7uTAevEQzKInihKRPiwKIlNKvsl8PkSz5mQbFfN8U w3/2ED0KZ8vUIong2oiLF3oJyuyLlo6ej8LsavkbLZU+5Ib9rv9HlNuOmd2Cfb1QGzF5 Km4OPkjyLj0UXG4m4awNDEzzGhCUe2D9I4YbruN+/b6YGo1ynQMI5yjrHVKvVN7fyf/Z ECkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ygxZlqSM; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s21-20020a17090aad9500b001ca6bd88c6asi2539434pjq.63.2022.04.07.13.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:49:45 -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=@amd.com header.s=selector1 header.b=ygxZlqSM; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EC5153C59AC; Thu, 7 Apr 2022 12:55:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343858AbiDGOUX (ORCPT + 99 others); Thu, 7 Apr 2022 10:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231286AbiDGOUV (ORCPT ); Thu, 7 Apr 2022 10:20:21 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2078.outbound.protection.outlook.com [40.107.94.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32FBA1229A8 for ; Thu, 7 Apr 2022 07:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WqoyEEyKsj+pEH+1yg2gOtE8srOFhY0NtpjVI4iAQFqyrcoXIJFPOimAI2LAmW+4AT/FBJIA1bG2CUzBJs75YYrUiq71us9XF4QGU6y5pa94tH8bTpBw02+e4LwzhA1otAaYgG2t1GzLmFjHby9c3e89rrSfiuMuuGGfU4BH/VoUaf2aZQ+l8i4GA99ee7vG/IN+sopShS7HKpWTDZlm1vMsjl3lzqHhjc+t+q7cKq538I69B0n2LRHou/5rKeAfHVmTdVd/8gKBRZ5tOkc/rHjyCVfYI0Ug9w5rfOmTDm68keYMiEF8L0achWi2/D+rblrMGxMiYTQS30rgviecNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nL7Zlf06HnJeYBDy43Vz9tyqp+zvNXEe7zh9nRW39g0=; b=Rid8CT/roo6iTZg/6FRsZLS7ltZlylCvfydbTaRx69s+FWKQmZtOhFOQz1D9kP8TKm8n0dykUBXHeLrNCKHnY00kJIRaIYov0W13ZX72GK7PdKxaYJ/JeYCifdS4Nav618nEE5E+5V0i8juL71rnb33s0JXZtUnj6cxcJ9dgjw37w/aqOKPv2Kc/79CLBTTkkI+w62RrY6BaviJBgC9GKfFUBgcKSv0PZhVdqOPcDX7dVKKuU6UKQKZ3qsK0C1//pZZv2G3TiLCSqwfxpBzQxnyBBhSNgmT4ZM4uahesgYmu6KiYgVeeVcb1qwrdw6aXh4HvDuTviUiymQ1ViTqRJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nL7Zlf06HnJeYBDy43Vz9tyqp+zvNXEe7zh9nRW39g0=; b=ygxZlqSMG8XkywFzu25fFWsich+ij7FzJ/hzc7B3977IOGrdH9BHCFFbRVAmY4DDVo2faD8Bu06jClfYQ5CfsG27+gpYZdF1e3mRnErHkxaiVzC69bcn7bCQZpfwAFQMOZJwLIJ87PIJ5AtnRCfuaKQ17ajZRvg1qMLHA5wMIBw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) by SN1PR12MB2528.namprd12.prod.outlook.com (2603:10b6:802:28::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.22; Thu, 7 Apr 2022 14:18:19 +0000 Received: from CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::61e4:a6bf:9444:31f9]) by CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::61e4:a6bf:9444:31f9%6]) with mapi id 15.20.5144.022; Thu, 7 Apr 2022 14:18:19 +0000 Message-ID: Date: Thu, 7 Apr 2022 10:18:14 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] drm/amd/display: Fix indenting mistakes in dcn10_hw_sequencer.c Content-Language: en-US To: Haowen Bai , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <1649311250-17077-1-git-send-email-baihaowen@meizu.com> From: Harry Wentland In-Reply-To: <1649311250-17077-1-git-send-email-baihaowen@meizu.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YQBPR0101CA0151.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:e::24) To CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1baf9db6-b5e1-4d80-d213-08da18a176c7 X-MS-TrafficTypeDiagnostic: SN1PR12MB2528:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: siZJHBOlwAjSOcw3WjI3rRAtqnJ2yUBGpniLVywP+0ekc+XFsicENX+C98n1tYEMt260C2YWOmfpQ7/EKPTn257a6aVdD0F6yNeyJxnidWOWMlhXnlV51rYrbrCi48nXCG0Ug5cTUgWaug4DF7W7PdFfNbFQvdE3fUNZzugV0thJOH5a5K3S4dOng8Pl8+QlKNd1oJQ0XzCAjvwXPOryL2d+W/Debk6fAjOw44XYyAjI9r5ATXAhTL0yjpzIcrkUkQ4pC1I7YGVZLDfGlMRUSgkXRlBj4q7f0ioAT9E7JtgkHlRtRoPVC84MQdCsZ4+Ac6lwpE0JB2kTeLBJGMf+9X2j+4HJhhWM8jRglV/YuBth+LoS/oepVAXPLItbuITeCSbgMerYNMCcBLRfDOmD/SA/vG0ONTyu37ZdM3+X2TQvUyEI1CECMlYo75i8OYEqZB7SJSngIvYzC/hCQbrMWarAgRC6OSgMbT1sVpY+euAejAXYyx3lttDVaUv+Sa/FiMshU3vDjMs2OpTdq6yBsKIETElU3GhzIOc2UAUSZGHGh2rWT7ZcgGdfPpaG26GaOvZuPONgeIoNYQ4E2gPkaeJst4xRiuIgTAdkevmAIVd2x37jkdlNTKk7Jq3yv3s2C1nNS5gCP3gg/h11rH+H3VZ6a987gMik+wjKmpLqzrH5lHakN58ivSCwthLJtspqoBOoTLRcjRyV839Ae7haBduii/wXYbFecRn5rZ+6Zcwh/ZJyOJPE4DZntt05VbVW X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR12MB5427.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(31696002)(38100700002)(86362001)(5660300002)(6486002)(36756003)(66556008)(508600001)(316002)(8676002)(8936002)(4326008)(110136005)(66946007)(26005)(186003)(83380400001)(2616005)(31686004)(53546011)(2906002)(6666004)(6512007)(6506007)(44832011)(66476007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d3hlNzBnTFhHbzdMcUdtUHZhL0hDSm9TSGxYc2I2WHZkS3JwOU9waXFaMXI3?= =?utf-8?B?QU40elhzenAwWWNNUXhCNXJ4eUlkeVBTYjBBeGVLS3NiUmhNZXVob1hsaW5C?= =?utf-8?B?NnpIT213MUI3YkJCRkZLSXhvRURrTEtRRzgzTnprNUt1UzFndWF4TTBTZlda?= =?utf-8?B?c1dIQW5tYzNYa1lLNGg0Z01LenY0UUFNVWdQMjQrclk0bFBvU3NpL3hGMVg5?= =?utf-8?B?VW1hOG1wSjBTbHM4eHRsQnI5ZXM0b1F6SHRJWk5XOFNxV2VJcnF5cWFmekND?= =?utf-8?B?cWxybUNIWWdFRWtXSUhPMEFkS2IwdzYrR1JEWnZVT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M1EvR3lDUm83OWFjTWtRMHMyMTE1b2Qydkd0andQVHJxbHcxcndkYWx5?= =?utf-8?B?aDBYTkdpREdHc0lWaG1laVNvVzdUMEJ4MnN0M1YxZUx1cnl3ekkzUmhDYVNQ?= =?utf-8?B?NDhta1lhNThwYWM1TFFOMnE4bTMxTGVyS0ZJQUczcHA4M1dIY085cU5MWEF5?= =?utf-8?B?dnJMK2F0WDMza3dUNlI4U2JRN3hWSk40dU9FNFlwWHpYcHdMUG9oZz09?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1baf9db6-b5e1-4d80-d213-08da18a176c7 X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5427.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2022 14:18:18.9204 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CI/5WIw23ydwEpMySoMVOYtGFMvHr2S58Giqj/HXTdndtYGuMhbuEJM7HQqInt5PZOExKMMfrY1egoKiqCkGBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2528 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 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; > } > grouped_pipes[master]->stream->vblank_synchronized = true;