[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210924170800.2f707dbe@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Fri, 24 Sep 2021 17:08:00 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Vladimir Oltean <olteanv@...il.com>,
"David S . Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Mauri Sandberg <sandberg@...lfence.com>,
Alvin Šipraga <alsi@...g-olufsen.dk>,
DENG Qingfang <dqfext@...il.com>
Subject: Re: [PATCH net-next 3/6 v5] net: dsa: rtl8366rb: Rewrite weird VLAN
filering enablement
On Sat, 25 Sep 2021 01:36:25 +0200 Linus Walleij wrote:
> +static int rtl8366rb_vlan_filtering(struct dsa_switch *ds, int port,
> + bool vlan_filtering,
> + struct netlink_ext_ack *extack)
> +{
> + struct realtek_smi *smi = ds->priv;
> + int ret;
drivers/net/dsa/rtl8366rb.c: In function ‘rtl8366rb_vlan_filtering’:
drivers/net/dsa/rtl8366rb.c:1221:6: warning: unused variable ‘ret’ [-Wunused-variable]
1221 | int ret;
| ^~~
> + dev_dbg(smi->dev, "port %d: %s VLAN filtering\n", port,
> + vlan_filtering ? "enable" : "disable");
> +
> + /* If the port is not in the member set, the frame will be dropped */
> + return regmap_update_bits(smi->map, RTL8366RB_VLAN_INGRESS_CTRL2_REG,
> + BIT(port), vlan_filtering ? BIT(port) : 0);
> +}
Powered by blists - more mailing lists