Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6205600iob; Tue, 10 May 2022 12:48:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWuLoR0Tbt0wUMk1blFEEYwzB1YGb2wOWk3tM2ctNEEM4UQTGZeTWGh4bq/Km2xHfkwuHR X-Received: by 2002:a05:6a00:2391:b0:50a:3ea9:e84d with SMTP id f17-20020a056a00239100b0050a3ea9e84dmr21925058pfc.21.1652212133500; Tue, 10 May 2022 12:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652212133; cv=none; d=google.com; s=arc-20160816; b=n/+7MAMurw7vifUEAfXJdcfnXDzz/C0B/X5lo2v5FdlxmCr7crV9k1/UDwKvutjJV4 DOJev+hsvXnslyJxoOyfD2rMUAWV6pjucxKVOU/xg19MBqAsgXZuOg1Ikl9Wm8uWQcZJ bYhSkfNYzb7GgqBa0yp5ayNMDTiKLo+swUn3bEJLFEVw4IaaAH4sgpC6WIz7HzKYoNji lblTMNtOGBQV8oHjcCKRJsY5fPwr6exIJyuvWocPKrgTW28HHhMSD3zaX3h8uCcBo33D 9AVHaeepMtlwsP8En9T0u/BUnfnOijLGJegSsMB4DktdFIBWpEKyh2OqXt1onF1MTjsF AU9A== 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=xz5dj/sAI16FlyJ/oMGNXUrGgnVqkXZ5u3e0YW3gpHs=; b=Wpht78DJe1BQ0jg1+q+bwdW0eNbVd+hjgdoEhOmFo7OjN54YVEuwCthp57OmzhSFnV maG5drQGekLoAm80eJyl9qb9YJPatSQIXbcouOE1Vwp1g4hhD8iLssVA5ONpLsNif2JD QQcwZxUVaOSNcIH6ioC5xK/r7t2PkXqO8kr3NP4PNeLpJtgsP83UfOA706xg3CSwMMBD QvLJViK1s9ZniHWszFzY2vjiBQTWfU4Kh+2Gzr9FcZiloTKEZ98O3niOhQxSIOv7d9Rp d8EKJhrMj9SEDDEFuAwAmm+RbOmEJujxbm6OlVbrrDP5PSgL9T5ypUk58FnnOpC7aqLB Ndag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PtrL5qWv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a056a00190c00b0050612d816e7si19808417pfi.104.2022.05.10.12.48.38; Tue, 10 May 2022 12:48:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PtrL5qWv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344826AbiEJPZV (ORCPT + 99 others); Tue, 10 May 2022 11:25:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345696AbiEJPYq (ORCPT ); Tue, 10 May 2022 11:24:46 -0400 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A30B5A59F for ; Tue, 10 May 2022 08:09:27 -0700 (PDT) Received: by mail-oo1-xc2d.google.com with SMTP id l9-20020a4abe09000000b0035eb3d4a2aeso3172745oop.0 for ; Tue, 10 May 2022 08:09:27 -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=xz5dj/sAI16FlyJ/oMGNXUrGgnVqkXZ5u3e0YW3gpHs=; b=PtrL5qWveEvv6rrV6LCRolslMgz2D5A05Filc1C4eA/tW3SXB586KpETA/BPDuw2K5 tVQWrrkFShOhj3P6/zbYLmkTeglTiwkevgQdp68+vQSDDARFHbkFUEtM0/MN1b3aFSm4 vM/9ukGaR4N8+FdJQZeUQaN7qjGEXqBZBSiqrzPoBePqORYTC1liLmB/DdIfiAg4g7q1 zHfiJzsNz9JOtXIFaCk7cGYgEdfiZGcGQx1TtIERtkEQPkPEhNVSM/ySzvupMxrSR52u jy+sDL6AjEId0S5DG5lJBft0cwUUMVx1gPu+uaePTy2tmzSA1s3ekTM0htfITXWHskKE 1Srw== 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=xz5dj/sAI16FlyJ/oMGNXUrGgnVqkXZ5u3e0YW3gpHs=; b=lLBKl3i/Q1EEJcIE6Lw6rSCEpUMMdC9qD+ZpwAXcYpToe425GL4cPgc/UOgxn+NIJs v0y5Ns4808oMr90fxU2u5N08BLbZ2gzpYY1avD/tSTltA8nuGBP5jP1OeG/pKTIDrWQM mLb1+EHsEsadPuJHgTrqpKqirRh4pLaUZ/1bhnqN1wyvjWIyJ5acUYizlt7WjwWHYRdM Gb8RkUkKJLQwTjYyVeI8VquB4Jfhdo8HVitsTGOR19EH6KLcBywLBeBUewvKNSy4ocvz JUGhXGma11waOORTQKEQRUn2myneNJ8ttfpeuZuR/12O1sESfwwjXY1pjuO2AVCf074c AhFQ== X-Gm-Message-State: AOAM530f5o6hOc7hHjDXWJGXK6G9s42l6DNMcOZbmTxM0c/o0/jXJirs 00skcXNCE7pu1xC1lYWw9oC5qK5ftt4EMyDzuTs= X-Received: by 2002:a4a:4a86:0:b0:35e:a2d3:763b with SMTP id k128-20020a4a4a86000000b0035ea2d3763bmr8169819oob.23.1652195366837; Tue, 10 May 2022 08:09:26 -0700 (PDT) MIME-Version: 1.0 References: <20220510060440.67178-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20220510060440.67178-1-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Tue, 10 May 2022 11:09:15 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu: 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, May 10, 2022 at 2:05 AM Jiapeng Chong wrote: > > Eliminate the follow smatch warning: > > drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c:35 nbio_v7_7_get_rev_id() warn: > inconsistent indenting. > > drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c:214 nbio_v7_7_init_registers() > warn: inconsistent indenting. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c > index e32c874b42b5..cdc0c9779848 100644 > --- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c > +++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c > @@ -32,8 +32,7 @@ static u32 nbio_v7_7_get_rev_id(struct amdgpu_device *adev) > { > u32 tmp; > > - tmp = RREG32_SOC15(NBIO, 0, regRCC_STRAP0_RCC_DEV0_EPF0_STRAP0); > - > + tmp = RREG32_SOC15(NBIO, 0, regRCC_STRAP0_RCC_DEV0_EPF0_STRAP0); > tmp &= RCC_STRAP0_RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0_MASK; > tmp >>= RCC_STRAP0_RCC_DEV0_EPF0_STRAP0__STRAP_ATI_REV_ID_DEV0_F0__SHIFT; > > @@ -211,14 +210,14 @@ static void nbio_v7_7_init_registers(struct amdgpu_device *adev) > { > uint32_t def, data; > > - def = data = RREG32_SOC15(NBIO, 0, regBIF0_PCIE_MST_CTRL_3); > - data = REG_SET_FIELD(data, BIF0_PCIE_MST_CTRL_3, > - CI_SWUS_MAX_READ_REQUEST_SIZE_MODE, 1); > - data = REG_SET_FIELD(data, BIF0_PCIE_MST_CTRL_3, > - CI_SWUS_MAX_READ_REQUEST_SIZE_PRIV, 1); > + def = data = RREG32_SOC15(NBIO, 0, regBIF0_PCIE_MST_CTRL_3); > + data = REG_SET_FIELD(data, BIF0_PCIE_MST_CTRL_3, > + CI_SWUS_MAX_READ_REQUEST_SIZE_MODE, 1); > + data = REG_SET_FIELD(data, BIF0_PCIE_MST_CTRL_3, > + CI_SWUS_MAX_READ_REQUEST_SIZE_PRIV, 1); > > - if (def != data) > - WREG32_SOC15(NBIO, 0, regBIF0_PCIE_MST_CTRL_3, data); > + if (def != data) > + WREG32_SOC15(NBIO, 0, regBIF0_PCIE_MST_CTRL_3, data); > > } > > -- > 2.20.1.7.g153144c >