From nobody Fri Apr 3 12:55:28 2026 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D28F3FFAC4 for ; Tue, 24 Mar 2026 14:47:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774363628; cv=none; b=XORMq+9bANpuXDRyhSo3LWNOkBnGBiwMtnjcqOJDlmoGhu5LMDt9EU6C7poLq2001E4pOClXKvAv2NV5H9lGicgQOw/CtixbTuDl51ag0tKVQp3zYu7292Qca17yZOPQMH8/MH8T7S5HKq60U1B+7Ua/EIarXxTZUImGUwmawa4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774363628; c=relaxed/simple; bh=T4a4e5KJlGe26Sd5S7YRg6XR4vrwYYgciWiIF7kRS/E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OfLSrUmcwXrym1Mrmz0KRFTaJH/yNFQ+wjx3aoZZjxehrErpp3/chnLXpV9b2dHPfTqU6BGT2QtBL+kdS1IaIkgAtyWtMBk1ymLhTVlBQZGewdAJqnJiKodcUgIjAjl6VFjgWsdemO6hRPHPJYSenVext5/AHx6bYd/zKs6Rpus= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=J3aDI28f; arc=none smtp.client-ip=95.215.58.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="J3aDI28f" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1774363621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2ueHmI5mgTDR5odOSYCRBX4DGBx1jlplYYGZFbMOOnE=; b=J3aDI28fJVnCH9KMA6XgE+JA8vUQnjwK7xGxLjOJ4xObeBKRb+6BWwhwuRdex1D3BW7VC0 mHRCXKq2H6w0s0AITyVHLasC/iLM78DqybL7D/ewu8JBYhtOp3cwezYk1xQ53vir9ZlAvR iHUR5nt3rdnJ2RNrSXYZKdxQR13Mlcw= From: luka.gejak@linux.dev To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org Cc: horms@kernel.org, fmaurer@redhat.com, liuhangbin@gmail.com, linux-kernel@vger.kernel.org, Luka Gejak Subject: [PATCH net-next v1 7/7] net: hsr: use BIT() macro for bit shift constant Date: Tue, 24 Mar 2026 15:46:30 +0100 Message-ID: <20260324144630.189094-8-luka.gejak@linux.dev> In-Reply-To: <20260324144630.189094-1-luka.gejak@linux.dev> References: <20260324144630.189094-1-luka.gejak@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: Luka Gejak Replace the explicit bit shift (1 << HSR_SEQ_BLOCK_SHIFT) with the standardized BIT() macro for defining HSR_SEQ_BLOCK_SIZE. This improves readability and aligns with kernel coding conventions. Signed-off-by: Luka Gejak --- net/hsr/hsr_framereg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/hsr/hsr_framereg.h b/net/hsr/hsr_framereg.h index c65ecb925734..cb731ee0ce5c 100644 --- a/net/hsr/hsr_framereg.h +++ b/net/hsr/hsr_framereg.h @@ -79,7 +79,7 @@ struct hsr_seq_block *hsr_get_seq_block(struct hsr_node *= node, u16 block_idx); #endif =20 #define HSR_SEQ_BLOCK_SHIFT 7 /* 128 bits */ -#define HSR_SEQ_BLOCK_SIZE (1 << HSR_SEQ_BLOCK_SHIFT) +#define HSR_SEQ_BLOCK_SIZE BIT(HSR_SEQ_BLOCK_SHIFT) #define HSR_SEQ_BLOCK_MASK (HSR_SEQ_BLOCK_SIZE - 1) #define HSR_MAX_SEQ_BLOCKS 64 =20 --=20 2.53.0