--- zzzz-none-000/linux-5.4.213/drivers/net/dsa/rtl8366.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/drivers/net/dsa/rtl8366.c 2024-08-14 09:02:07.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.