[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202412251623.8huquaZx-lkp@intel.com>
Date: Wed, 25 Dec 2024 21:02:10 +0800
From: kernel test robot <lkp@...el.com>
To: Yong Wang <yongwang@...dia.com>, razor@...ckwall.org, roopa@...dia.com,
davem@...emloft.net, edumazet@...gle.com, netdev@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev, aroulin@...dia.com,
idosch@...dia.com, nmiyar@...dia.com
Subject: Re: [PATCH net-next 1/2] net: bridge: multicast: re-implement port
multicast enable/disable functions
Hi Yong,
kernel test robot noticed the following build errors:
[auto build test ERROR on 3272040790eb4b6cafe6c30ec05049e9599ec456]
url: https://github.com/intel-lab-lkp/linux/commits/Yong-Wang/net-bridge-multicast-re-implement-port-multicast-enable-disable-functions/20241221-060848
base: 3272040790eb4b6cafe6c30ec05049e9599ec456
patch link: https://lore.kernel.org/r/20241220220604.1430728-2-yongwang%40nvidia.com
patch subject: [PATCH net-next 1/2] net: bridge: multicast: re-implement port multicast enable/disable functions
config: i386-randconfig-011-20241225 (https://download.01.org/0day-ci/archive/20241225/202412251623.8huquaZx-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241225/202412251623.8huquaZx-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412251623.8huquaZx-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from net/bridge/br_multicast.c:10:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/cacheflush.h:5:
In file included from arch/x86/include/asm/cacheflush.h:5:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> net/bridge/br_multicast.c:2178:14: error: call to undeclared function 'br_vlan_state_allowed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2178 | if (on && br_vlan_state_allowed(br_vlan_get_state(vlan), true))
| ^
>> net/bridge/br_multicast.c:2178:36: error: call to undeclared function 'br_vlan_get_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2178 | if (on && br_vlan_state_allowed(br_vlan_get_state(vlan), true))
| ^
net/bridge/br_multicast.c:2178:36: note: did you mean 'br_vlan_get_stats'?
include/trace/events/../../../net/bridge/br_private.h:1792:20: note: 'br_vlan_get_stats' declared here
1792 | static inline void br_vlan_get_stats(const struct net_bridge_vlan *v,
| ^
1 warning and 2 errors generated.
vim +/br_vlan_state_allowed +2178 net/bridge/br_multicast.c
2159
2160 static void br_multicast_toggle_port(struct net_bridge_port *port, bool on)
2161 {
2162 struct net_bridge *br = port->br;
2163
2164 if (br_opt_get(br, BROPT_MCAST_VLAN_SNOOPING_ENABLED)) {
2165 struct net_bridge_vlan_group *vg;
2166 struct net_bridge_vlan *vlan;
2167
2168 rcu_read_lock();
2169 vg = nbp_vlan_group_rcu(port);
2170 if (!vg) {
2171 rcu_read_unlock();
2172 return;
2173 }
2174
2175 /* iterate each vlan of the port, toggle port_mcast_ctx per vlan */
2176 list_for_each_entry_rcu(vlan, &vg->vlan_list, vlist) {
2177 /* enable port_mcast_ctx when vlan is LEARNING or FORWARDING */
> 2178 if (on && br_vlan_state_allowed(br_vlan_get_state(vlan), true))
2179 br_multicast_enable_port_ctx(&vlan->port_mcast_ctx);
2180 else
2181 br_multicast_disable_port_ctx(&vlan->port_mcast_ctx);
2182 }
2183 rcu_read_unlock();
2184 } else {
2185 /* use the port's multicast context when vlan snooping is disabled */
2186 if (on)
2187 br_multicast_enable_port_ctx(&port->multicast_ctx);
2188 else
2189 br_multicast_disable_port_ctx(&port->multicast_ctx);
2190 }
2191 }
2192
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists