🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2369

Re: [PATCH net-next v13 3/5] net: dsa: motorcomm: use fixed-width GENMASK_U*() helpers

#2369
From: Andrew Lunn
Date: Mon, 12 Oct 2026 14:35
16 lines
6488 bytes
On Sun, Oct 11, 2026 at 10:50:41AM +0800, Kyle Switch wrote:
> Some masks assigned to u16 and u32 fields are defined with
> GENMASK(),which is an unsigned long constant and wider than
> the field type on 64-bit builds. Convert the affected
> internal_mask entries in chip.c and the YT921X_MBUS_CTRL_*
> masks used by mdio_bus.c to fixed-width helpers.
> 
> This is a type cleanup only, with no functional change.  Other
> GENMASK() uses in the driver are intentionally left untouched.
> 
> Signed-off-by: Kyle Switch <kyle.switch@motor-comm.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <44b1b1d3-06eb-4a95-9b24-71a2d25db977@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345034-linux-kernel-netdev=dewy.ru
References: <20261011025043.1859940-1-kyle.switch@motor-comm.com> <20261011025043.1859940-4-kyle.switch@motor-comm.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345034-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v13 3/5] net: dsa: motorcomm: use fixed-width
 GENMASK_U*() helpers
Date: Mon, 12 Oct 2026 16:35:49 +0200
Organization: Usenet Network
Message-ID: <44b1b1d3-06eb-4a95-9b24-71a2d25db977@lunn.ch>
References: <20261011025043.1859940-1-kyle.switch@motor-comm.com>
 <20261011025043.1859940-4-kyle.switch@motor-comm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1799480"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0MFdiwdCziACplXh058VP5v9fS8= sha256:uZMYJHz+rApLiqpTt5LjZxt8Ta8TQA46K4io342c3cY=
	sha1:oVOAeldEfDOvsTTID30shlEGwe8= sha256:dgzDKxGf2ifcOD96oyH+T3b6rxpkxwHp5uW7I8zFohw=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 43C3810FC16; Mon, 12 Oct 2026 17:44:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.75
X-Spam-Status: No, score=-0.75 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 7-_bYxsyXMVJ;
	Mon, 12 Oct 2026 17:44:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-345034-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 958E610FC08; Mon, 12 Oct 2026 17:44:29 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id 6F351349A9; Mon, 12 Oct 2026 14:36:58 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C9EDA48FF6A;
	Mon, 12 Oct 2026 14:36:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="SaNRFaRd"
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(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 1ADED48EBF7;
	Mon, 12 Oct 2026 14:36:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791815769; cv=none; b=UpKjL1DJgA9cQFL2TMvxJ48xSUOOOrSaPkQTxxQnvrDGUYON1isf5PZQDKrbNkIz+PPnhJxf3WwPhFCOXJWsxNBxeVxL3wv5pVu7lixE0lP1F5/O+x3sVPiXNhRSv8yx7FfTegKkkc2Sl7ko6P87mEO/wugTCAnBXAxRqCFetKM=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791815769; c=relaxed/simple;
	bh=ruAB98NV4MtKZb7ATPssY5Pyex7av3lefwqTbyxb1dk=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=qG8BWUSmAqvDxLHVoW8DjpstGUDq3n9WtatUr2Ay2A+9UUDzbFPvTz1xkx1f5Zmdg59JrONcczQV/9w8+xJ4FVdulY6dzDJtOTgOub97CN4Vr8wFZo8Delq/fO6BX48FQn1+bLhdOEiIeMoNCRxD5rZmfS8uNJMOrsFgVhUyT/M=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=SaNRFaRd; arc=none smtp.client-ip=156.67.10.101
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=krFACiaW3QUm8OgBNfKBi5AprBUH06s+4jeaJgDuJho=; b=SaNRFaRdunTEj4UKEw+1hKjwTo
	8MWTmSZJhrOC7IZYFF1AMp4LNX9y+JB99m216dBI4RlC68LpM4RTIxP82ssbYh0MxCfvmltV/L5lq
	dXrr3KajSRmwLfS1e7OOaGqTBMX87A1XMmNt2hmqKyWZx0MqVz+lrTnfZWHDs3jcl9ug=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xGH81-00ALAe-6f; Mon, 12 Oct 2026 16:35:49 +0200
X-Cc: olteanv@gmail.com, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, mmyangfl@gmail.com,
	horms@kernel.org, linux@armlinux.org.uk, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, ming.xu@motor-comm.com,
	xiaolin.xu@motor-comm.com, jianmin.wang@motor-comm.com,
	wei.zhang@gl-inet.com, sijia.huang@gl-inet.com
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261011025043.1859940-4-kyle.switch@motor-comm.com>