[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202180823.WrBulKvy-lkp@intel.com>
Date: Fri, 18 Feb 2022 08:54:38 +0800
From: kernel test robot <lkp@...el.com>
To: Amit Cohen <amcohen@...dia.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [jpirko-mlxsw:ubridge 44/50]
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c:818:1: warning: stack
frame size (1080) exceeds limit (1024) in
'mlxsw_sp_fid_erif_eport_to_vid_map_one'
tree: https://github.com/jpirko/linux_mlxsw ubridge
head: a9a4f2bd50dde60a52d9dda03d38875255fe0b9c
commit: df1dd79ad7b8bcecdae432f7ce94ded5a2358f20 [44/50] WIP: Add FID families
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220218/202202180823.WrBulKvy-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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://github.com/jpirko/linux_mlxsw/commit/df1dd79ad7b8bcecdae432f7ce94ded5a2358f20
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw ubridge
git checkout df1dd79ad7b8bcecdae432f7ce94ded5a2358f20
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/mellanox/mlxsw/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c:545:12: warning: stack frame size (1096) exceeds limit (1024) in 'mlxsw_sp_fid_erif_eport_to_vid_map' [-Wframe-larger-than]
static int mlxsw_sp_fid_erif_eport_to_vid_map(struct mlxsw_sp_fid *fid,
^
>> drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c:818:1: warning: stack frame size (1080) exceeds limit (1024) in 'mlxsw_sp_fid_erif_eport_to_vid_map_one' [-Wframe-larger-than]
mlxsw_sp_fid_erif_eport_to_vid_map_one(const struct mlxsw_sp_fid *fid,
^
2 warnings generated.
vim +/mlxsw_sp_fid_erif_eport_to_vid_map_one +818 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
237f4f76837b01 Amit Cohen 2022-01-06 816
e6f8d1542cdc49 Amit Cohen 2022-01-10 817 static int
e6f8d1542cdc49 Amit Cohen 2022-01-10 @818 mlxsw_sp_fid_erif_eport_to_vid_map_one(const struct mlxsw_sp_fid *fid,
e6f8d1542cdc49 Amit Cohen 2022-01-10 819 u16 rif_index, u16 local_port, u16 vid,
e6f8d1542cdc49 Amit Cohen 2022-01-10 820 bool valid)
e6f8d1542cdc49 Amit Cohen 2022-01-10 821 {
e6f8d1542cdc49 Amit Cohen 2022-01-10 822 u8 port_page = local_port / (MLXSW_REG_REIV_REC_MAX_COUNT - 1);
e6f8d1542cdc49 Amit Cohen 2022-01-10 823 u8 rec_num = local_port % MLXSW_REG_REIV_REC_MAX_COUNT;
e6f8d1542cdc49 Amit Cohen 2022-01-10 824 struct mlxsw_sp *mlxsw_sp = fid->fid_family->mlxsw_sp;
e6f8d1542cdc49 Amit Cohen 2022-01-10 825 char reiv_pl[MLXSW_REG_REIV_LEN];
e6f8d1542cdc49 Amit Cohen 2022-01-10 826
e6f8d1542cdc49 Amit Cohen 2022-01-10 827 mlxsw_reg_reiv_pack(reiv_pl, port_page, rif_index);
e6f8d1542cdc49 Amit Cohen 2022-01-10 828 mlxsw_reg_reiv_rec_update_set(reiv_pl, rec_num, true);
e6f8d1542cdc49 Amit Cohen 2022-01-10 829 mlxsw_reg_reiv_rec_evid_set(reiv_pl, rec_num, valid ? vid : 0);
e6f8d1542cdc49 Amit Cohen 2022-01-10 830 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(reiv), reiv_pl);
e6f8d1542cdc49 Amit Cohen 2022-01-10 831 }
e6f8d1542cdc49 Amit Cohen 2022-01-10 832
:::::: The code at line 818 was first introduced by commit
:::::: e6f8d1542cdc497206db6e9cd460cba6ca34e9a3 mlxsw: spectrum_fid: Configure layer 3 egress VID classification
:::::: TO: Amit Cohen <amcohen@...dia.com>
:::::: CC: Amit Cohen <amcohen@...dia.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists