build flags: SHELL=/nix/store/5p8qcz6i13ymgf80kimhx2g9pb5r5nia-bash-4.4-p23/bin/bash KDIR=/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/build INSTALL_MOD_PATH=\$\(out\)
make -C /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/build M=/build/vhba-module-20190302 modules
make[1]: Entering directory '/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/build'
CC [M] /build/vhba-module-20190302/vhba.o
In file included from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/printk.h:330:0,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/kernel.h:15,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/list.h:9,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/module.h:9,
from /build/vhba-module-20190302/vhba.c:24:
/build/vhba-module-20190302/vhba.c: In function 'vhba_queuecommand_lck':
/build/vhba-module-20190302/vhba.c:455:37: error: 'struct scsi_cmnd' has no member named 'serial_number'
scmd_dbg(cmd, "queue %lu\n", cmd->serial_number);
^
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:118:15: note: in definition of macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, \
^~~~~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/device.h:1493:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:241:2: note: in expansion of macro 'dev_dbg'
dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
^~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:260:4: note: in expansion of macro 'sdev_dbg'
sdev_dbg((scmd)->device, "[%s] " fmt, \
^~~~~~~~
/build/vhba-module-20190302/vhba.c:455:5: note: in expansion of macro 'scmd_dbg'
scmd_dbg(cmd, "queue %lu\n", cmd->serial_number);
^~~~~~~~
/build/vhba-module-20190302/vhba.c:455:37: error: 'struct scsi_cmnd' has no member named 'serial_number'
scmd_dbg(cmd, "queue %lu\n", cmd->serial_number);
^
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:118:15: note: in definition of macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, \
^~~~~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/device.h:1493:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:241:2: note: in expansion of macro 'dev_dbg'
dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
^~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:263:4: note: in expansion of macro 'sdev_dbg'
sdev_dbg((scmd)->device, fmt, ##a); \
^~~~~~~~
/build/vhba-module-20190302/vhba.c:455:5: note: in expansion of macro 'scmd_dbg'
scmd_dbg(cmd, "queue %lu\n", cmd->serial_number);
^~~~~~~~
In file included from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/platform_device.h:14:0,
from /build/vhba-module-20190302/vhba.c:32:
/build/vhba-module-20190302/vhba.c: In function 'vhba_abort':
/build/vhba-module-20190302/vhba.c:486:38: error: 'struct scsi_cmnd' has no member named 'serial_number'
scmd_warn(cmd, "abort %lu\n", cmd->serial_number);
^
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/device.h:1485:33: note: in definition of macro 'dev_warn'
_dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
/build/vhba-module-20190302/vhba.c:486:5: note: in expansion of macro 'scmd_warn'
scmd_warn(cmd, "abort %lu\n", cmd->serial_number);
^~~~~~~~~
In file included from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/printk.h:330:0,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/kernel.h:15,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/list.h:9,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/module.h:9,
from /build/vhba-module-20190302/vhba.c:24:
/build/vhba-module-20190302/vhba.c: In function 'do_request':
/build/vhba-module-20190302/vhba.c:521:12: error: 'struct scsi_cmnd' has no member named 'serial_number'
cmd->serial_number, cmd->cmnd[0], scsi_bufflen(cmd), scsi_sg_count(cmd));
^
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:118:15: note: in definition of macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, \
^~~~~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/device.h:1493:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:241:2: note: in expansion of macro 'dev_dbg'
dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
^~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:260:4: note: in expansion of macro 'sdev_dbg'
sdev_dbg((scmd)->device, "[%s] " fmt, \
^~~~~~~~
/build/vhba-module-20190302/vhba.c:520:5: note: in expansion of macro 'scmd_dbg'
scmd_dbg(cmd, "request %lu, cdb 0x%x, bufflen %d, use_sg %d\n",
^~~~~~~~
/build/vhba-module-20190302/vhba.c:521:12: error: 'struct scsi_cmnd' has no member named 'serial_number'
cmd->serial_number, cmd->cmnd[0], scsi_bufflen(cmd), scsi_sg_count(cmd));
^
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:118:15: note: in definition of macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, \
^~~~~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/device.h:1493:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:241:2: note: in expansion of macro 'dev_dbg'
dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
^~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:263:4: note: in expansion of macro 'sdev_dbg'
sdev_dbg((scmd)->device, fmt, ##a); \
^~~~~~~~
/build/vhba-module-20190302/vhba.c:520:5: note: in expansion of macro 'scmd_dbg'
scmd_dbg(cmd, "request %lu, cdb 0x%x, bufflen %d, use_sg %d\n",
^~~~~~~~
/build/vhba-module-20190302/vhba.c:533:19: error: 'struct scsi_cmnd' has no member named 'serial_number'
vreq.tag = cmd->serial_number;
^~
In file included from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/printk.h:330:0,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/kernel.h:15,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/list.h:9,
from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/module.h:9,
from /build/vhba-module-20190302/vhba.c:24:
/build/vhba-module-20190302/vhba.c: In function 'do_response':
/build/vhba-module-20190302/vhba.c:589:13: error: 'struct scsi_cmnd' has no member named 'serial_number'
cmd->serial_number, res->status, res->data_len, scsi_sg_count(cmd));
^
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:118:15: note: in definition of macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, \
^~~~~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/device.h:1493:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:241:2: note: in expansion of macro 'dev_dbg'
dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
^~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:260:4: note: in expansion of macro 'sdev_dbg'
sdev_dbg((scmd)->device, "[%s] " fmt, \
^~~~~~~~
/build/vhba-module-20190302/vhba.c:588:5: note: in expansion of macro 'scmd_dbg'
scmd_dbg(cmd, "response %lu, status %x, data len %d, use_sg %d\n",
^~~~~~~~
/build/vhba-module-20190302/vhba.c:589:13: error: 'struct scsi_cmnd' has no member named 'serial_number'
cmd->serial_number, res->status, res->data_len, scsi_sg_count(cmd));
^
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:118:15: note: in definition of macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/dynamic_debug.h:150:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, \
^~~~~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/device.h:1493:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:241:2: note: in expansion of macro 'dev_dbg'
dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
^~~~~~~
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/scsi/scsi_device.h:263:4: note: in expansion of macro 'sdev_dbg'
sdev_dbg((scmd)->device, fmt, ##a); \
^~~~~~~~
/build/vhba-module-20190302/vhba.c:588:5: note: in expansion of macro 'scmd_dbg'
scmd_dbg(cmd, "response %lu, status %x, data len %d, use_sg %d\n",
^~~~~~~~
/build/vhba-module-20190302/vhba.c: In function 'match_command':
/build/vhba-module-20190302/vhba.c:690:22: error: 'struct scsi_cmnd' has no member named 'serial_number'
if (vcmd->cmd->serial_number == tag) {
^~
In file included from /nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/platform_device.h:14:0,
from /build/vhba-module-20190302/vhba.c:32:
/build/vhba-module-20190302/vhba.c: In function 'vhba_ctl_release':
/build/vhba-module-20190302/vhba.c:932:77: error: 'struct scsi_cmnd' has no member named 'serial_number'
scmd_warn(vcmd->cmd, "device released with command %lu\n", vcmd->cmd->serial_number);
^
/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/include/linux/device.h:1485:33: note: in definition of macro 'dev_warn'
_dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
/build/vhba-module-20190302/vhba.c:932:9: note: in expansion of macro 'scmd_warn'
scmd_warn(vcmd->cmd, "device released with command %lu\n", vcmd->cmd->serial_number);
^~~~~~~~~
make[4]: *** [/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/scripts/Makefile.build:282: /build/vhba-module-20190302/vhba.o] Error 1
make[3]: *** [/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/source/Makefile:1571: _module_/build/vhba-module-20190302] Error 2
make[2]: *** [Makefile:169: sub-make] Error 2
make[1]: *** [Makefile:15: __sub-make] Error 2
make[1]: Leaving directory '/nix/store/4y1mb4yhpqxrk8nmqp8ckc2vais97k18-linux-5.1.1-dev/lib/modules/5.1.1/build'
make: *** [Makefile:14: modules] Error 2
Can you try using VHBA module 20190410? The issue should be fixed there.