[linux-next:master 12347/12886] drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22: multiple definition of `mlx5_lag_mpesw_init'; drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.o:drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22: first defined here

[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:   21498d01d045c5b95b93e0a0625ae965b4330ebe
commit: 94db3317781922ba52722c58061e0e8517d4d80d [12347/12886] net/mlx5: Support multiport eswitch mode
config: alpha-randconfig-r033-20220519 (https://download.01.org/0day-ci/archive/20220520/202205202242.jpG3zD2s-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 11.3.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=94db3317781922ba52722c58061e0e8517d4d80d
        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 94db3317781922ba52722c58061e0e8517d4d80d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   alpha-linux-ld: drivers/net/ethernet/mellanox/mlx5/core/lag/lag.o: in function `mlx5_lag_mpesw_init':
>> drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22: multiple definition of `mlx5_lag_mpesw_init'; drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.o:drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22: first defined here
   alpha-linux-ld: drivers/net/ethernet/mellanox/mlx5/core/lag/lag.o: in function `mlx5_lag_mpesw_cleanup':
>> drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22: multiple definition of `mlx5_lag_mpesw_cleanup'; drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.o:drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22: first defined here


vim +22 drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h

    14	
    15	void mlx5_mpesw_work(struct work_struct *work);
    16	int mlx5_lag_do_mirred(struct mlx5_core_dev *mdev, struct net_device *out_dev);
    17	bool mlx5_lag_mpesw_is_activated(struct mlx5_core_dev *dev);
    18	#if IS_ENABLED(CONFIG_MLX5_ESWITCH)
    19	void mlx5_lag_mpesw_init(struct mlx5_lag *ldev);
    20	void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev);
    21	#else
  > 22	void mlx5_lag_mpesw_init(struct mlx5_lag *ldev) {}
    23	void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev) {}
    24	#endif
    25	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[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