Re: [PATCH 1/7] scsi/scsi_transport_iscsi: Add iface struct to kernel.

From: kbuild test robot
Date: Thu Jun 08 2017 - 08:30:57 EST


Hi Robert,

[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on v4.12-rc4 next-20170608]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Robert-LeBlanc/Enable-iSCSI-offload-drivers-to-use-information-from-iface/20170607-211934
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64

All errors (new ones prefixed by >>):

In file included from include/scsi/libiscsi.h:35:0,
from drivers/scsi/be2iscsi/be_iscsi.c:15:
>> include/scsi/scsi_transport_iscsi.h:308:16: error: 'IFNAMSIZ' undeclared here (not in a function)
char netdev[IFNAMSIZ];
^~~~~~~~

vim +/IFNAMSIZ +308 include/scsi/scsi_transport_iscsi.h

302 struct iface_rec {
303 struct list_head list;
304 /* iscsi iface record name */
305 char name[ISCSI_MAX_IFACE_LEN];
306 uint32_t iface_num;
307 /* network layer iface name (eth0) */
> 308 char netdev[IFNAMSIZ];
309 char ipaddress[NI_MAXHOST];
310 char subnet_mask[NI_MAXHOST];
311 char gateway[NI_MAXHOST];

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip