[linux-next:master 2711/3150] net/bridge/br_multicast.c:1743:3: error: implicit declaration of function 'br_ip6_multicast_add_router'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   cd557f1c605fc5a2c0eb0b540610f50dc67dd849
commit: a3c02e769efe66dce5e2c716862b60c8d44d191e [2711/3150] net: bridge: mcast: split multicast router state for IPv4 and IPv6
config: x86_64-randconfig-r015-20210514 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 425781bce01f2f1d5f553d3b2bf9ebbd6e15068c)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=a3c02e769efe66dce5e2c716862b60c8d44d191e
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout a3c02e769efe66dce5e2c716862b60c8d44d191e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

Note: the linux-next/master HEAD cd557f1c605fc5a2c0eb0b540610f50dc67dd849 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> net/bridge/br_multicast.c:1743:3: error: implicit declaration of function 'br_ip6_multicast_add_router' [-Werror,-Wimplicit-function-declaration]
                   br_ip6_multicast_add_router(br, port);
                   ^
   net/bridge/br_multicast.c:1743:3: note: did you mean 'br_ip4_multicast_add_router'?
   net/bridge/br_multicast.c:54:13: note: 'br_ip4_multicast_add_router' declared here
   static void br_ip4_multicast_add_router(struct net_bridge *br,
               ^
   net/bridge/br_multicast.c:2804:13: error: static declaration of 'br_ip6_multicast_add_router' follows non-static declaration
   static void br_ip6_multicast_add_router(struct net_bridge *br,
               ^
   net/bridge/br_multicast.c:1743:3: note: previous implicit declaration is here
                   br_ip6_multicast_add_router(br, port);
                   ^
   2 errors generated.


vim +/br_ip6_multicast_add_router +1743 net/bridge/br_multicast.c

  1729	
  1730	static void __br_multicast_enable_port(struct net_bridge_port *port)
  1731	{
  1732		struct net_bridge *br = port->br;
  1733	
  1734		if (!br_opt_get(br, BROPT_MULTICAST_ENABLED) || !netif_running(br->dev))
  1735			return;
  1736	
  1737		br_multicast_enable(&port->ip4_own_query);
  1738	#if IS_ENABLED(CONFIG_IPV6)
  1739		br_multicast_enable(&port->ip6_own_query);
  1740	#endif
  1741		if (port->multicast_router == MDB_RTR_TYPE_PERM) {
  1742			br_ip4_multicast_add_router(br, port);
> 1743			br_ip6_multicast_add_router(br, port);
  1744		}
  1745	}
  1746	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux