--- zzzz-none-000/linux-5.4.213/drivers/net/dsa/rtl8366.c 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/drivers/net/dsa/rtl8366.c 2024-05-29 11:19:52.000000000 +0000 @@ -311,7 +311,7 @@ /* For the CPU port, make all ports members of this * VLAN. */ - mask = GENMASK(smi->num_ports - 1, 0); + mask = GENMASK((int)smi->num_ports - 1, 0); else /* For all other ports, enable itself plus the * CPU port.