Re: [PATCH] net: dsa: lan9303: add VLAN IDs to master device

From: Vladimir Oltean
Date: Wed Feb 16 2022 - 14:55:51 EST


On Thu, Feb 17, 2022 at 03:33:39AM +0800, kernel test robot wrote:
> >> drivers/net/dsa/lan9303-core.c:1095:2: error: implicit declaration of function 'vlan_vid_add' [-Werror,-Wimplicit-function-declaration]
> vlan_vid_add(cpu_dp->master, htons(ETH_P_8021Q), port);
> ^
> >> drivers/net/dsa/lan9303-core.c:1111:2: error: implicit declaration of function 'vlan_vid_del' [-Werror,-Wimplicit-function-declaration]
> vlan_vid_del(cpu_dp->master, htons(ETH_P_8021Q), port);
> ^

#include <linux/if_vlan.h>

drivers/net/dsa/Kconfig:

config NET_DSA_SMSC_LAN9303
depends on VLAN_8021Q || VLAN_8021Q=n

and maybe you can access using dp->cpu_dp in the next revision.