[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201201030.HA2UgQTx-lkp@intel.com>
Date: Thu, 20 Jan 2022 11:27:58 +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, Ido Schimmel <idosch@...dia.com>
Subject: [jpirko-mlxsw:ubridge 73/78]
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c:461:12: warning: stack
frame size (1092) exceeds limit (1024) in
'mlxsw_sp_fid_erif_eport_to_vid_map'
tree: https://github.com/jpirko/linux_mlxsw ubridge
head: 976afb368c2f7efc2dc2436013895cc96ab06774
commit: 6e0855a9b3824d98f266ac39a1a19c7bce925cd2 [73/78] mlxsw: spectrum_fid: Configure layer 3 egress VID classification
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220120/202201201030.HA2UgQTx-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f7b7138a62648f4019c55e4671682af1f851f295)
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/6e0855a9b3824d98f266ac39a1a19c7bce925cd2
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw ubridge
git checkout 6e0855a9b3824d98f266ac39a1a19c7bce925cd2
# 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:461:12: warning: stack frame size (1092) 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:689:12: warning: stack frame size (1116) exceeds limit (1024) in '__mlxsw_sp_fid_port_vid_map' [-Wframe-larger-than]
static int __mlxsw_sp_fid_port_vid_map(const struct mlxsw_sp_fid *fid,
^
2 warnings generated.
vim +/mlxsw_sp_fid_erif_eport_to_vid_map +461 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
460
> 461 static int mlxsw_sp_fid_erif_eport_to_vid_map(struct mlxsw_sp_fid *fid,
462 u16 rif_index, bool valid)
463 {
464 struct mlxsw_sp *mlxsw_sp = fid->fid_family->mlxsw_sp;
465 struct mlxsw_sp_fid_port_vid *port_vid, *tmp;
466 char reiv_pl[MLXSW_REG_REIV_LEN] = {};
467 bool records_to_write = false;
468 u8 rec_num, current_page = 0;
469 u16 last_local_port;
470 int err;
471
472 mlxsw_reg_reiv_pack(reiv_pl, current_page, rif_index);
473 last_local_port = current_page * MLXSW_REG_REIV_REC_MAX_COUNT +
474 MLXSW_REG_REIV_REC_MAX_COUNT - 1;
475
476 list_for_each_entry_safe(port_vid, tmp, &fid->port_vid_list, list) {
477 /* The list is sorted by local_port. */
478 if (port_vid->local_port > last_local_port)
479 goto reg_write;
480
481 new_record_fill:
482 rec_num = port_vid->local_port % MLXSW_REG_REIV_REC_MAX_COUNT;
483 mlxsw_reg_reiv_rec_update_set(reiv_pl, rec_num, true);
484 mlxsw_reg_reiv_rec_evid_set(reiv_pl, rec_num,
485 valid ? port_vid->vid : 0);
486 records_to_write = true;
487 goto next_list_node;
488
489 reg_write:
490 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(reiv), reiv_pl);
491 if (err)
492 return err;
493
494 records_to_write = false;
495 current_page++;
496 memset(reiv_pl, 0, MLXSW_REG_REIV_LEN);
497 mlxsw_reg_reiv_pack(reiv_pl, current_page, rif_index);
498 last_local_port = current_page * MLXSW_REG_REIV_REC_MAX_COUNT +
499 MLXSW_REG_REIV_REC_MAX_COUNT - 1;
500 goto new_record_fill;
501
502 next_list_node:
503 continue;
504 }
505
506 if (records_to_write)
507 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(reiv),
508 reiv_pl);
509 return 0;
510 }
511
---
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