]> Gentwo Git Trees - linux/.git/commit
net: dsa: yt921x: Use *_ULL bitfield macros for VLAN_CTRL
authorDavid Yang <mmyangfl@gmail.com>
Mon, 1 Dec 2025 09:42:28 +0000 (17:42 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Dec 2025 23:10:13 +0000 (15:10 -0800)
commitd973ac83ad0d0292c81d4bcbb4a335834f90aa5d
tree6ae45b43a47d3c348675c88b07c4f29b6593c350
parenta2027019e9cea7f0d82141a2ac2b5709c1dcd88c
net: dsa: yt921x: Use *_ULL bitfield macros for VLAN_CTRL

VLAN_CTRL should be treated as a 64-bit register. GENMASK and BIT
macros use unsigned long as the underlying type, which will result in a
build error on architectures where sizeof(long) == 4.

Replace them with unsigned long long variants.

Signed-off-by: David Yang <mmyangfl@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251201094232.3155105-2-mmyangfl@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/yt921x.h