Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2967118rwb; Mon, 5 Sep 2022 04:34:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR67alJk/HvHsl4WyuuuFPibgn1VkxgWvljzHx6enQ8ofUV+9puPlMV6dQ9UsHxxmxhsdAlZ X-Received: by 2002:a65:680f:0:b0:42b:e186:8f3f with SMTP id l15-20020a65680f000000b0042be1868f3fmr32834570pgt.124.1662377668469; Mon, 05 Sep 2022 04:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662377668; cv=none; d=google.com; s=arc-20160816; b=IbLItrWo+oBvxw+C13v6NWiUtcODhCDWd5ldhhQY9nWEhdCgEXupbuwbBezVk0IpNm ZaM2EK5iX0Zov2HJ4NLfpan8x4mO9a6VIF9R0Chd5b4T43yvQH+v+IVXt1WFTB0Cd2RZ JKbhY8h++9jVxDOGDkWp6X9Lz/lbfXj0lg6nN694UZPVAiEkLSf1Mif2dqsGrQdbo/K3 tdmXgbjkHXSHmhwgQ8UKikF7StmyRpRHU1DI8pjDYrO3IJm0vvoBXq0pDJPSx7XfnWeJ f6EifdwaiLziiJV/BuLPM0q/FIn+dOPBwtzf2yyrH1bNJQRgNVpuIX7T2HvFlk2clCQf rHqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iTakt3lV7rDBfj6zMK7PDrQi9jdie4tNamf8xHspI2w=; b=R7VKCcOq/iSpCpX7gYMgd9g1if3cIr7Kwez3Sqt40k/jvP7VXIlaW9rVurxXjeml/6 HYGbF6zMjDILViOsrsvyvO9NiArGo5BVlm12rTZWJwQT3YjA6rKNiMegqF46w1IedCKE w7eJkn5k9vhz4QXuTElnTiGEUouJmra6CFybnFcY3BdIez990wHFdrOgBl085DhcH78H hb+fRrSE5PuoP+AZdF2Yv9ZW5uqpV0IojJgQnG7pgWpKsVOVWBrxGmSthbio52w5aoIX 2pImJwujFXBx60H3TfQqswz2zyFwHN/op/EQpeNb0P6n3ljhApR49yyMv3zUqT4bLFs3 7Vhw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a17090341c400b0016f1c879eacsi4033494ple.109.2022.09.05.04.34.15; Mon, 05 Sep 2022 04:34:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238255AbiIELLB (ORCPT + 99 others); Mon, 5 Sep 2022 07:11:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236714AbiIELKq (ORCPT ); Mon, 5 Sep 2022 07:10:46 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 506475A3D5 for ; Mon, 5 Sep 2022 04:10:45 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oV9zx-0005hc-Lt; Mon, 05 Sep 2022 13:10:37 +0200 From: Heiko Stuebner To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: guoren@kernel.org, apatel@ventanamicro.com, atishp@rivosinc.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner , Conor Dooley , Andrew Jones Subject: [PATCH v2 3/5] riscv: use BIT() macros in t-head errata init Date: Mon, 5 Sep 2022 13:10:25 +0200 Message-Id: <20220905111027.2463297-4-heiko@sntech.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220905111027.2463297-1-heiko@sntech.de> References: <20220905111027.2463297-1-heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 Using the appropriate BIT macro makes the code better readable. Suggested-by: Conor Dooley Signed-off-by: Heiko Stuebner Reviewed-by: Guo Ren Reviewed-by: Conor Dooley Reviewed-by: Andrew Jones --- arch/riscv/errata/thead/errata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/errata/thead/errata.c b/arch/riscv/errata/thead/errata.c index bffa711aaf64..a6f4bd8ccf3f 100644 --- a/arch/riscv/errata/thead/errata.c +++ b/arch/riscv/errata/thead/errata.c @@ -49,10 +49,10 @@ static u32 thead_errata_probe(unsigned int stage, u32 cpu_req_errata = 0; if (errata_probe_pbmt(stage, archid, impid)) - cpu_req_errata |= (1U << ERRATA_THEAD_PBMT); + cpu_req_errata |= BIT(ERRATA_THEAD_PBMT); if (errata_probe_cmo(stage, archid, impid)) - cpu_req_errata |= (1U << ERRATA_THEAD_CMO); + cpu_req_errata |= BIT(ERRATA_THEAD_CMO); return cpu_req_errata; } -- 2.35.1