[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111081602.zjXuJOa1-lkp@intel.com>
Date: Mon, 8 Nov 2021 16:55:15 +0800
From: kernel test robot <lkp@...el.com>
To: Quinn Tran <qutran@...vell.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Hannes Reinecke <hare@...e.de>,
Himanshu Madhani <himanshu.madhani@...cle.com>,
Larry Wisneski <Larry.Wisneski@...vell.com>,
Duane Grigsby <duane.grigsby@...vell.com>,
Rick Hicksted Jr <rhicksted@...vell.com>,
Nilesh Javali <njavali@...vell.com>
Subject: drivers/scsi/qla2xxx/qla_dfs.c:227:1: warning: the frame size of
1088 bytes is larger than 1024 bytes
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6b75d88fa81b122cce37ebf17428a849ccd3d0f1
commit: dd30706e73b70d67e88fdaca688db7a3374fd5de scsi: qla2xxx: edif: Add key update
date: 3 months ago
config: powerpc64-buildonly-randconfig-r004-20211026 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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/torvalds/linux.git/commit/?id=dd30706e73b70d67e88fdaca688db7a3374fd5de
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout dd30706e73b70d67e88fdaca688db7a3374fd5de
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
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/scsi/qla2xxx/qla_dfs.c: In function 'qla2x00_dfs_tgt_port_database_show':
>> drivers/scsi/qla2xxx/qla_dfs.c:227:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
227 | }
| ^
vim +227 drivers/scsi/qla2xxx/qla_dfs.c
36c7845282eef0 Quinn Tran 2016-02-04 174
c423437e3ff41b Himanshu Madhani 2017-03-15 175 static int
c423437e3ff41b Himanshu Madhani 2017-03-15 176 qla2x00_dfs_tgt_port_database_show(struct seq_file *s, void *unused)
c423437e3ff41b Himanshu Madhani 2017-03-15 177 {
c423437e3ff41b Himanshu Madhani 2017-03-15 178 scsi_qla_host_t *vha = s->private;
c423437e3ff41b Himanshu Madhani 2017-03-15 179 struct qla_hw_data *ha = vha->hw;
4e5a05d1ecd92c Arun Easi 2020-09-03 180 struct gid_list_info *gid_list;
c423437e3ff41b Himanshu Madhani 2017-03-15 181 dma_addr_t gid_list_dma;
c423437e3ff41b Himanshu Madhani 2017-03-15 182 fc_port_t fc_port;
4e5a05d1ecd92c Arun Easi 2020-09-03 183 char *id_iter;
c423437e3ff41b Himanshu Madhani 2017-03-15 184 int rc, i;
c423437e3ff41b Himanshu Madhani 2017-03-15 185 uint16_t entries, loop_id;
c423437e3ff41b Himanshu Madhani 2017-03-15 186
c423437e3ff41b Himanshu Madhani 2017-03-15 187 seq_printf(s, "%s\n", vha->host_str);
c423437e3ff41b Himanshu Madhani 2017-03-15 188 gid_list = dma_alloc_coherent(&ha->pdev->dev,
c423437e3ff41b Himanshu Madhani 2017-03-15 189 qla2x00_gid_list_size(ha),
c423437e3ff41b Himanshu Madhani 2017-03-15 190 &gid_list_dma, GFP_KERNEL);
c423437e3ff41b Himanshu Madhani 2017-03-15 191 if (!gid_list) {
83548fe2fcbb78 Quinn Tran 2017-06-02 192 ql_dbg(ql_dbg_user, vha, 0x7018,
c423437e3ff41b Himanshu Madhani 2017-03-15 193 "DMA allocation failed for %u\n",
c423437e3ff41b Himanshu Madhani 2017-03-15 194 qla2x00_gid_list_size(ha));
c423437e3ff41b Himanshu Madhani 2017-03-15 195 return 0;
c423437e3ff41b Himanshu Madhani 2017-03-15 196 }
c423437e3ff41b Himanshu Madhani 2017-03-15 197
c423437e3ff41b Himanshu Madhani 2017-03-15 198 rc = qla24xx_gidlist_wait(vha, gid_list, gid_list_dma,
c423437e3ff41b Himanshu Madhani 2017-03-15 199 &entries);
c423437e3ff41b Himanshu Madhani 2017-03-15 200 if (rc != QLA_SUCCESS)
c423437e3ff41b Himanshu Madhani 2017-03-15 201 goto out_free_id_list;
c423437e3ff41b Himanshu Madhani 2017-03-15 202
4e5a05d1ecd92c Arun Easi 2020-09-03 203 id_iter = (char *)gid_list;
c423437e3ff41b Himanshu Madhani 2017-03-15 204
c423437e3ff41b Himanshu Madhani 2017-03-15 205 seq_puts(s, "Port Name Port ID Loop ID\n");
c423437e3ff41b Himanshu Madhani 2017-03-15 206
c423437e3ff41b Himanshu Madhani 2017-03-15 207 for (i = 0; i < entries; i++) {
4e5a05d1ecd92c Arun Easi 2020-09-03 208 struct gid_list_info *gid =
4e5a05d1ecd92c Arun Easi 2020-09-03 209 (struct gid_list_info *)id_iter;
c423437e3ff41b Himanshu Madhani 2017-03-15 210 loop_id = le16_to_cpu(gid->loop_id);
c423437e3ff41b Himanshu Madhani 2017-03-15 211 memset(&fc_port, 0, sizeof(fc_port_t));
c423437e3ff41b Himanshu Madhani 2017-03-15 212
c423437e3ff41b Himanshu Madhani 2017-03-15 213 fc_port.loop_id = loop_id;
c423437e3ff41b Himanshu Madhani 2017-03-15 214
c423437e3ff41b Himanshu Madhani 2017-03-15 215 rc = qla24xx_gpdb_wait(vha, &fc_port, 0);
c423437e3ff41b Himanshu Madhani 2017-03-15 216 seq_printf(s, "%8phC %02x%02x%02x %d\n",
c423437e3ff41b Himanshu Madhani 2017-03-15 217 fc_port.port_name, fc_port.d_id.b.domain,
c423437e3ff41b Himanshu Madhani 2017-03-15 218 fc_port.d_id.b.area, fc_port.d_id.b.al_pa,
c423437e3ff41b Himanshu Madhani 2017-03-15 219 fc_port.loop_id);
4e5a05d1ecd92c Arun Easi 2020-09-03 220 id_iter += ha->gid_list_info_size;
c423437e3ff41b Himanshu Madhani 2017-03-15 221 }
c423437e3ff41b Himanshu Madhani 2017-03-15 222 out_free_id_list:
c423437e3ff41b Himanshu Madhani 2017-03-15 223 dma_free_coherent(&ha->pdev->dev, qla2x00_gid_list_size(ha),
c423437e3ff41b Himanshu Madhani 2017-03-15 224 gid_list, gid_list_dma);
c423437e3ff41b Himanshu Madhani 2017-03-15 225
c423437e3ff41b Himanshu Madhani 2017-03-15 226 return 0;
c423437e3ff41b Himanshu Madhani 2017-03-15 @227 }
c423437e3ff41b Himanshu Madhani 2017-03-15 228
:::::: The code at line 227 was first introduced by commit
:::::: c423437e3ff41b8ca551ab6621baf11538dbfe9d qla2xxx: Add DebugFS node to display Port Database
:::::: TO: Himanshu Madhani <himanshu.madhani@...ium.com>
:::::: CC: Nicholas Bellinger <nab@...ux-iscsi.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (41409 bytes)
Powered by blists - more mailing lists