
[mac80211] ca5ee6e mac80211: Fix potential endless loop 2c14710 mac80211: add more AQL fixes/improvements 91fb3ce mac80211: remove an obsolete patch that is no longer doing anything useful acf1733 mac80211: add preliminary support for enabling 802.11ax in config d717343 mac80211: update encap offload patches to the latest version 673062f mac80211: allow bigger A-MSDU sizes in VHT, even if HT is limited caf7277 mac80211: do not allow bigger VHT MPDUs than the hardware supports cd36c0d mac80211: select the first available channel for 5GHz interfaces 1c6d456 mac80211: fix regression in station connection monitor optimization 4bd7689 mac80211: update sta connection monitor regression fix [target] Sync: at91, ath25, ath79, lantiq, mediatek, mvebu.
28 lines
977 B
Diff
28 lines
977 B
Diff
From 733993f502f254912b1415e13f73651d9f2e74ef Mon Sep 17 00:00:00 2001
|
|
From: Andrew Lunn <andrew@lunn.ch>
|
|
Date: Sun, 5 Jul 2020 22:42:27 +0200
|
|
Subject: [PATCH 1/5] net: dsa: rtl8366: Pass GENMASK() signed bits
|
|
|
|
Oddly, GENMASK() requires signed bit numbers, so that it can compare
|
|
them for < 0. If passed an unsigned type, we get warnings about the
|
|
test never being true.
|
|
|
|
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
|
|
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
drivers/net/dsa/rtl8366.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/dsa/rtl8366.c
|
|
+++ b/drivers/net/dsa/rtl8366.c
|
|
@@ -285,7 +285,7 @@ int rtl8366_init_vlan(struct realtek_smi
|
|
/* 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.
|