* [linux-next:master 12347/12886] drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22:6: warning: no previous prototype for function 'mlx5_lag_mpesw_init'
@ 2022-05-19 16:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-19 16:53 UTC (permalink / raw)
To: Eli Cohen
Cc: llvm, kbuild-all, Linux Memory Management List, Saeed Mahameed,
Mark Bloch
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: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220520/202205200012.68rPHREP-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e00cbbec06c08dc616a0d52a20f678b8fbd4e304)
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=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/mellanox/mlx5/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.c:4:
In file included from drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h:13:
>> drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22:6: warning: no previous prototype for function 'mlx5_lag_mpesw_init' [-Wmissing-prototypes]
void mlx5_lag_mpesw_init(struct mlx5_lag *ldev) {}
^
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mlx5_lag_mpesw_init(struct mlx5_lag *ldev) {}
^
static
>> drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:23:6: warning: no previous prototype for function 'mlx5_lag_mpesw_cleanup' [-Wmissing-prototypes]
void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev) {}
^
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:23:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev) {}
^
static
2 warnings generated.
vim +/mlx5_lag_mpesw_init +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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-19 16:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-19 16:53 [linux-next:master 12347/12886] drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22:6: warning: no previous prototype for function 'mlx5_lag_mpesw_init' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).