Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2967193rwb; Mon, 5 Sep 2022 04:34:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6FrIiJdMEkSj4shvcHuY2Rult2ybwBCZTna0VX3+F+MxAS3QdEzCgtm7zqluXPpMY0zUQy X-Received: by 2002:a17:90b:1e49:b0:200:6d41:9662 with SMTP id pi9-20020a17090b1e4900b002006d419662mr3912464pjb.221.1662377672152; Mon, 05 Sep 2022 04:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662377672; cv=none; d=google.com; s=arc-20160816; b=JIAeeDo/Bbb6jeU84rrGkIovdlmQeSh5VRC2L+2I3CyfEH7Qo08yCKWXG+s37vZD1s 8IRbhdwlehx2rkJzj6qH3KDPxQKUa9D3GoBkoEhEIbKotYZ0WzaTczSD30DmmS+E9wk6 9h1O5O2RFNP/HsW/LDoKzXlV90Pe6VQ4QOZznDkEVlU4PjEaMrP9m1/YSZ5R+XSCKFh5 gVInsHkx1X/01/Vu6goLPZgYCE52qL5m93MDFNdE+O8rQEmKwUx3XqhwEitdwpuC18ng dVToJzQr+n0dqozT+6sKSb3RNQLsAACq6CtEpZ/ramksSUEZXnB4ZHuM6FCLP/zFYUMP sCDA== 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=GtckfgR+zRLgkF9jUpLwgWNTOTQm6QSXVcTTAkb7Ptg=; b=zoQBjryASoiwSqnnbcKld1cgstLIDLJB5E+vjZewnBp41h0+7glvbyXUyoWLczxowd OPXSg3ZzmvJtdixN0elxibEbKuFlwR8/GILnkrLd781NFyzFmDKqX8xiNeiTdm21Bx3t pJGhhUILuByKIm0+FXCR/2X0GII7ljwbeBNFYkKukEwGEQrHsuiGCDVN3D4MYDNhOtS9 0UbUotQaef0n/VnZxxYF5dlcK16fZIEc7S3BQELFvUbCaDnNp1Hgl3UR8nK3PtwPgKhd RNZM5ctutB9pDRdtloSSRZFUzrn0p0tNsvBZA4n1QSWqV6x6u5MFSGhJwHGFpzamWXIr cMiQ== 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 ja18-20020a170902efd200b00176ab430a57si76314plb.546.2022.09.05.04.34.19; Mon, 05 Sep 2022 04:34:32 -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 S238237AbiIELLD (ORCPT + 99 others); Mon, 5 Sep 2022 07:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237459AbiIELKr (ORCPT ); Mon, 5 Sep 2022 07:10:47 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A7FC5A3E3 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 1oV9zy-0005hc-23; Mon, 05 Sep 2022 13:10:38 +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 Subject: [PATCH v2 4/5] riscv: use BIT() marco for cpufeature probing Date: Mon, 5 Sep 2022 13:10:26 +0200 Message-Id: <20220905111027.2463297-5-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 --- arch/riscv/kernel/cpufeature.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index 729f7a218093..08f7445985dc 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -289,10 +289,10 @@ static u32 __init_or_module cpufeature_probe(unsigned int stage) u32 cpu_req_feature = 0; if (cpufeature_probe_svpbmt(stage)) - cpu_req_feature |= (1U << CPUFEATURE_SVPBMT); + cpu_req_feature |= BIT(CPUFEATURE_SVPBMT); if (cpufeature_probe_zicbom(stage)) - cpu_req_feature |= (1U << CPUFEATURE_ZICBOM); + cpu_req_feature |= BIT(CPUFEATURE_ZICBOM); return cpu_req_feature; } -- 2.35.1