Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DD1CC433F5 for ; Thu, 11 Nov 2021 10:09:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 82C8C61241 for ; Thu, 11 Nov 2021 10:09:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232786AbhKKKLt (ORCPT ); Thu, 11 Nov 2021 05:11:49 -0500 Received: from mail-dm3nam07on2049.outbound.protection.outlook.com ([40.107.95.49]:3680 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230358AbhKKKLr (ORCPT ); Thu, 11 Nov 2021 05:11:47 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mFzybV/a7ZW3W7tKuVBd8YBanJT9+nUh2ObhLVlRqLfbK5EAha5NDpJQlwzLYewuDtRSl6RzggNBis15S78xxzHIFhYSUnj789HlmEAbcmATHFCKLrmIK9AEh6/MCpnlEloM4E9VViZwuATJ47JumAfdgKwGX3JGR1q7RTeGJjoUEn5zeKLJV26ep4B2QXO3uA4yfr9KJwb+UdMTZthxvbSM2iB6NlX2yAuv6gbmHgtYwMen4iaDKbCHJ3yImePTc+rN4H2m9S9vFcwK1DaA3U5Ky544RSV6YsVsP7FlalqQC+pZMRq/BDtw8PQu+WFFtMhsoxmVcbN/h7Ix9grfbQ== 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=7SgO7lqiy7UjBoRYyDrne3XjjKDGpEH4VAiBYQ5pBEE=; b=ahkV9UiOHW573fPdLG8pPSu5DoBo75eDZRoqAeUunckg0xW/9miq8Y4PnourGkSZof8DvVm9l8jBsKlNkWidphvG+FXO0GvnEcGkqyAZBci9SdstWYO/jAFg0EdT4ZEjdqQSOzB0fUaorc1ceYtE0UeGlgKMttaguU1wHvDZMfvyDaEmtdC6SwhtFLcWIsbfQAUrErX0ia2ugolaz7LzoldtfSi+24p+yBZWpQxVo4aA5e1+oWO40kSXk/5jlyZZ2N/Y+Wo+YyM+IdZ19dVQ/vGGC6hygO4pXpSPVSfxoQkk0VPixAvi61zQcBwLcgfe7OEgOwefbkbwNcHnoHvmmg== 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=7SgO7lqiy7UjBoRYyDrne3XjjKDGpEH4VAiBYQ5pBEE=; b=3k39H/0thu/E3Y02EhJ8PVpJ7IKjVrAe5NZ/prqtF0/pQVB/5q159jTl9oLfJw6NApvBMw9f+AVbyXf98/6Zx2olpQtNL5e73SN6ZTtK0Yl2SAm263q0FT/xDkDG3Sxh2QeTtNRF18BeUO0AKMSf/SBYL2xD6FxRsptWzKGrF2U= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from MWHPR1201MB0192.namprd12.prod.outlook.com (2603:10b6:301:5a::14) by MW3PR12MB4586.namprd12.prod.outlook.com (2603:10b6:303:53::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Thu, 11 Nov 2021 10:08:56 +0000 Received: from MWHPR1201MB0192.namprd12.prod.outlook.com ([fe80::2d02:26e7:a2d0:3769]) by MWHPR1201MB0192.namprd12.prod.outlook.com ([fe80::2d02:26e7:a2d0:3769%5]) with mapi id 15.20.4669.018; Thu, 11 Nov 2021 10:08:56 +0000 Subject: Re: [PATCH] drm/amd/display: Clean up some inconsistent indenting To: Jiapeng Chong , alexander.deucher@amd.com Cc: Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <1636625005-87952-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Thu, 11 Nov 2021 11:08:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 In-Reply-To: <1636625005-87952-1-git-send-email-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-ClientProxiedBy: AM8P190CA0025.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:219::30) To MWHPR1201MB0192.namprd12.prod.outlook.com (2603:10b6:301:5a::14) MIME-Version: 1.0 Received: from [192.168.178.21] (79.194.4.163) by AM8P190CA0025.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:219::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Thu, 11 Nov 2021 10:08:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cbef5118-9e50-4ec6-0fea-08d9a4fb45bd X-MS-TrafficTypeDiagnostic: MW3PR12MB4586: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:626; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XCY6uHF7JhuCprRugvAneyfDPcP69S0YUgWE0nocRijFAyGwWpbUfXdL+DHdp1lTLLmzF9koy44Bdt/shawX4hMN2ZPf76YqJ+h/NnR+X6wDsbC5gym3l01r/rZHCWujqZb8FsDppiyJLR7mE9b2OFo2CBibE030uzUs1WTlv3X+qiG3gXlrpliHJJe3MI44bfCz67D9BFTsX4Qeg8Sup/vLyZKtZQUbPBDCD6kbZlWIhAZp+Qe5DH11DF4UTp6rR3P0acpt6xoQM+79YonnFE2u0JhZYDVJV/fqfs5EQdalwjfAWqQ62sSCtgG+kwN6eMoS0i0EXbobBbj9mT6sn6KTnSyL27LxvEDDCGb09xqYdwnJs1Y6UVXXu5J7JrPhfhS1U9OydjvWgmkBZL+PXk4gwfBKocOMGrJQeWvQvjxhA0ckcdB79VrLjQuBSoT1DlxtpGkg3b8JY01Dt7xSSfuwh0czyfeAaBH907IWVRNmhlxdUcE2SKHALUjO1MxAV9UteJQBPZgC6sAzwD6YkonDNov5Tlq1vcgqmQ2993hr3rbttXuitQ0tzYuR18oINi6CuL3N/kKUYoa04pTBHDKJ94bdefxIlQPUet01KFYJQIF2rNZs0lf24KmYlmnTFPd3yFUt8vQjYDkd0jRhoELrNbc7ykwTgScSaUJO9M+r0FZfuinjOB59KNiOFMj8j0V29/Qmg/9SL8yFnws9B0c/pQshRWt5Hv2yZu8ho/w= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1201MB0192.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(2906002)(6636002)(956004)(2616005)(8936002)(4326008)(66476007)(66556008)(66946007)(316002)(6666004)(66574015)(508600001)(5660300002)(31686004)(8676002)(83380400001)(6486002)(16576012)(26005)(86362001)(36756003)(31696002)(38100700002)(186003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-Ant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pJNUtCZmpSU1Z0U1FBOVpFUTFhSyt6Y3dmcEpZU0dF?= =?utf-8?B?Tmt6UUFFRG9jcmI0eEFLdVV3ZmxaZjZYSndDd3FvOW9heXRuYXJNM0ZTaTF4?= =?utf-8?B?WHNWZitUcG4wRUJYbWFUdytYTnpPejJjRndPN2t0V0hFUitPcXU0Uyt2N1Ew?= =?utf-8?B?VTg0QjdCdDVnTXZ5U2NJdHAwZFNMVWZET2FqQ1dNSGZNV1dCdm5DeVlBY0tY?= =?utf-8?B?QlNtclNpWWtLbENsc0hlU1JzZXFHTVUxdFEzZUxkenZKanZUWmhMVlhaK3N0?= =?utf-8?B?MmtvSUNGQWcwZHlMMHZmNDg4cU5SK21qdEh5cnQrajNMWjBEY2tielNuUE5U?= =?utf-8?Q?FKUA=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: cbef5118-9e50-4ec6-0fea-08d9a4fb45bd X-MS-Exchange-CrossTenant-AuthSource: MWHPR1201MB0192.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2021 10:08:56.4710 (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: dnYd7NSTqsLbv8g404mQIm8rLHCW47ScqTzt71rilMH2KO/+JpN/tp40BmmGer6+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4586 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 11.11.21 um 11:03 schrieb Jiapeng Chong: > Eliminate the follow smatch warning: > > drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:622 > dmub_srv_cmd_execute() warn: inconsistent indenting. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Reviewed-by: Christian König > --- > drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c > index 56a0332..e9fadf1 100644 > --- a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c > +++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c > @@ -618,8 +618,8 @@ enum dmub_status dmub_srv_cmd_execute(struct dmub_srv *dmub) > * read back stale, fully invalid or partially invalid data. > */ > dmub_rb_flush_pending(&dmub->inbox1_rb); > + dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt); > > - dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt); > return DMUB_STATUS_OK; > } >