Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1293787rwe; Thu, 1 Sep 2022 16:14:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7rUGAzfsjF7LABO7m9CAEo7H4JEsTnMhvwS+7ewKcIc3yj2ILo4ObqyxXPrqW+wctV+iDm X-Received: by 2002:a17:907:a058:b0:741:72ed:5606 with SMTP id gz24-20020a170907a05800b0074172ed5606mr15900606ejc.452.1662074064953; Thu, 01 Sep 2022 16:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662074064; cv=none; d=google.com; s=arc-20160816; b=xePQFeriz2n+Z0HbcJ+0i9x3Izv2DGKFqqQfgbNgxY4M/eUrqNxl5b+pOlGDU4tjD1 hQIF5FjDfT1oUG+Lz5ojIBKheIEIE2esNWyb7Y3GgxJ3NZV8p3aChDYSw0WLoFqQvN/S PN2H1pRUFnzo0Od/wuWDv7dYPITH4EMy/66TJTXq7roH9yxZCgzJfm9+qVAkLQF2Mw7i oO7c+yplxLSyckQsTBvtukN2pqpqW5KNjgi99qq8b/UkXkLA+QOkSkPU1mzAEZvcINiW ahphfMt/4pCIWgnfs/hgf3F2X6nRvSK5DbIQDHDbSNad5FvhC0feO3ZR/iotCBeglr8A Hc/Q== 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=e1i3V2FUdF95Ri9NscS+gLn5L+kwLGZmDKRc8oZLFoI=; b=NXIfGA0wRNsNoz1tqdJbX4tON0AdiQMEP7/otPlJixPKg+M/WzvjbpYOgaHyBJZR4Z Q1Kwuc4ISMrAnSfll3i5XMjIxrFyYDJDWCNS/XxPnyk8Q9TvPfQSks16R2oeIoPagI3f kZgakyT4eQj7/eZYjZredgsRX+ICjU0yhI2cDF1FtodQjrcxVqu0K/tCI7A3tp3K8McK wSM3eXE/Rnl+xcJZDxG7cl5dLrDCBsHtFuOnJS6GOr1Ud6XLZ28sE6s7879EiG+nbaSf 5kRq9hMrlZANL+C8XLLLNnjNlPgihPgxQLVcsmVEBJtN23cLNtpWOryky90SOi1sgrfU fYYg== 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 og36-20020a1709071de400b0073dd47c3873si340061ejc.878.2022.09.01.16.13.59; Thu, 01 Sep 2022 16:14:24 -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 S235410AbiIAWal (ORCPT + 99 others); Thu, 1 Sep 2022 18:30:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235026AbiIAW3p (ORCPT ); Thu, 1 Sep 2022 18:29:45 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B42F48CBD for ; Thu, 1 Sep 2022 15:28:28 -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 1oTsfW-0007wk-Gz; Fri, 02 Sep 2022 00:28:14 +0200 From: Heiko Stuebner To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: conor.dooley@microchip.com, guoren@kernel.org, apatel@ventanamicro.com, atishp@rivosinc.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner Subject: [PATCH 3/4] riscv: use BIT macros in t-head errata init Date: Fri, 2 Sep 2022 00:27:43 +0200 Message-Id: <20220901222744.2210215-3-heiko@sntech.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220901222744.2210215-1-heiko@sntech.de> References: <20220901222744.2210215-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 --- 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