From: Alex P. <ap...@19...> - 2015-11-26 16:09:37
|
Hello, I’m trying to compile qlogit git target driver on ubuntu 14.04 with 4.2.6 vanilla kernel. First I download kernel from kernel.org, make menu config Default I/O scheduler = CFQ No Forced Preemption make-kpkg clean fakeroot make-kpkg --initrd --append-to-version=-scst-enabled kernel-image kernel-headers install kernel and header, reboot. Download lasted SCST trunk and qlogic git symlink git to SCST root ln -s ../scst-qla2xxx/drivers/scsi/qla2xxx qla2x00t_git unload native qla driver rmmod qla2xxx Now try to compile and install # pwd /usr/src/scst-trunk #make 2perrf # BUILD_2X_MODULE=y CONFIG_SCSI_QLA_FC=y CONFIG_SCSI_QLA2XXX_TARGET=y make all install cd scst && make all make[1]: Entering directory `/usr/src/scst-trunk/scst' cd src && make all make[2]: Entering directory `/usr/src/scst-trunk/scst/src' echo "/* Autogenerated, don't edit */" >../include/scst_itf_ver.h echo "" >>../include/scst_itf_ver.h echo -n "#define SCST_INTF_VER " >>../include/scst_itf_ver.h echo "\"`sha1sum ../include/scst.h|awk '{printf $1}'`\"" >>../include/scst_itf_ver.h echo -n "#define SCST_CONST_INTF_VER " >>../include/scst_itf_ver.h echo "\"`sha1sum ../include/scst_const.h|awk '{printf $1}'`\"" >>../include/scst_itf_ver.h echo -n "#define DEV_USER_INTF_VER " >>../include/scst_itf_ver.h echo "\"`sha1sum ../include/scst_user.h|awk '{printf $1}'`\"" >>../include/scst_itf_ver.h make -C /lib/modules/4.2.6-scst/build SUBDIRS=/usr/src/scst-trunk/scst/src BUILD_DEV=m make[3]: Entering directory `/usr/src/linux-4.2.6' LD /usr/src/scst-trunk/scst/src/built-in.o CC [M] /usr/src/scst-trunk/scst/src/scst_main.o CC [M] /usr/src/scst-trunk/scst/src/scst_targ.o CC [M] /usr/src/scst-trunk/scst/src/scst_lib.o CC [M] /usr/src/scst-trunk/scst/src/scst_sysfs.o CC [M] /usr/src/scst-trunk/scst/src/scst_mem.o CC [M] /usr/src/scst-trunk/scst/src/scst_debug.o CC [M] /usr/src/scst-trunk/scst/src/scst_pres.o CC [M] /usr/src/scst-trunk/scst/src/scst_no_dlm.o CC [M] /usr/src/scst-trunk/scst/src/scst_dlm.o CC [M] /usr/src/scst-trunk/scst/src/scst_tg.o CC [M] /usr/src/scst-trunk/scst/src/scst_event.o CC [M] /usr/src/scst-trunk/scst/src/scst_copy_mgr.o LD [M] /usr/src/scst-trunk/scst/src/scst.o LD /usr/src/scst-trunk/scst/src/dev_handlers/built-in.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_cdrom.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_changer.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_disk.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_modisk.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_tape.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_vdisk.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_raid.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_processor.o CC [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_user.o Building modules, stage 2. MODPOST 10 modules CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_cdrom.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_cdrom.ko CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_changer.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_changer.ko CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_disk.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_disk.ko CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_modisk.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_modisk.ko CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_processor.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_processor.ko CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_raid.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_raid.ko CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_tape.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_tape.ko CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_user.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_user.ko CC /usr/src/scst-trunk/scst/src/dev_handlers/scst_vdisk.mod.o LD [M] /usr/src/scst-trunk/scst/src/dev_handlers/scst_vdisk.ko CC /usr/src/scst-trunk/scst/src/scst.mod.o LD [M] /usr/src/scst-trunk/scst/src/scst.ko make[3]: Leaving directory `/usr/src/linux-4.2.6' make[2]: Leaving directory `/usr/src/scst-trunk/scst/src' make[1]: Leaving directory `/usr/src/scst-trunk/scst' make[1]: Entering directory `/usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla2x00-target' make BUILD_2X_MODULE=y CONFIG_SCSI_QLA2XXX_TARGET=y \ SUBDIRS=/usr/src/scst-trunk/qla2x00t_git/qla2x00-target/.. -C /usr/src/scst-trunk/qla2x00t_git/qla2x00-target/.. all make[2]: Entering directory `/usr/src/scst-qla2xxx/drivers/scsi/qla2xxx' qla: all make -C /lib/modules/4.2.6-scst/build SUBDIRS=/usr/src/scst-qla2xxx/drivers/scsi/qla2xxx BUILD_INI=m make[3]: Entering directory `/usr/src/linux-4.2.6' LD /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/built-in.o CC [M] /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.o /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:354:2: warning: initialization from incompatible pointer type [enabled by default] .change_queue_depth = qla2x00_change_queue_depth, ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:354:2: warning: (near initialization for ‘qla2xxx_driver_template.change_queue_depth’) [enabled by default] /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:355:2: error: unknown field ‘change_queue_type’ specified in initializer .change_queue_type = qla2x00_change_queue_type, ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:355:2: warning: initialization from incompatible pointer type [enabled by default] /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:355:2: warning: (near initialization for ‘qla2xxx_driver_template.bios_param’) [enabled by default] /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c: In function ‘__qla2xxx_eh_generic_reset’: /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1263:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘u64’ [-Wformat=] cmd->device->id, cmd->device->lun, cmd); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1288:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘u64’ [-Wformat=] vha->host_no, cmd->device->id, cmd->device->lun, cmd); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1296:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘u64’ [-Wformat=] cmd); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c: In function ‘qla2xxx_slave_configure’: /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1584:3: error: implicit declaration of function ‘scsi_activate_tcq’ [-Werror=implicit-function-declaration] scsi_activate_tcq(sdev, req->max_q_depth); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1586:3: error: implicit declaration of function ‘scsi_deactivate_tcq’ [-Werror=implicit-function-declaration] scsi_deactivate_tcq(sdev, req->max_q_depth); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c: In function ‘qla2x00_handle_queue_full’: /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1620:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘u64’ [-Wformat=] sdev->queue_depth, fcport->vha->host_no, sdev->id, sdev->lun); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c: In function ‘qla2x00_adjust_sdev_qdepth_up’: /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1636:10: error: ‘struct scsi_device’ has no member named ‘ordered_tags’ if (sdev->ordered_tags) ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1637:3: error: implicit declaration of function ‘scsi_adjust_queue_depth’ [-Werror=implicit-function-declaration] scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, qdepth); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1637:33: error: ‘MSG_ORDERED_TAG’ undeclared (first use in this function) scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, qdepth); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1637:33: note: each undeclared identifier is reported only once for each function it appears in /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1639:33: error: ‘MSG_SIMPLE_TAG’ undeclared (first use in this function) scsi_adjust_queue_depth(sdev, MSG_SIMPLE_TAG, qdepth); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1643:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘u64’ [-Wformat=] sdev->queue_depth, fcport->vha->host_no, sdev->id, sdev->lun); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c: In function ‘qla2x00_change_queue_depth’: /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1650:7: error: ‘SCSI_QDEPTH_DEFAULT’ undeclared (first use in this function) case SCSI_QDEPTH_DEFAULT: ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1651:3: error: implicit declaration of function ‘scsi_get_tag_type’ [-Werror=implicit-function-declaration] scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), qdepth); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1653:7: error: ‘SCSI_QDEPTH_QFULL’ undeclared (first use in this function) case SCSI_QDEPTH_QFULL: ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1656:7: error: ‘SCSI_QDEPTH_RAMP_UP’ undeclared (first use in this function) case SCSI_QDEPTH_RAMP_UP: ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c: In function ‘qla2x00_change_queue_type’: /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:1673:3: error: implicit declaration of function ‘scsi_set_tag_type’ [-Werror=implicit-function-declaration] scsi_set_tag_type(sdev, tag_type); ^ /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c: In function ‘qla2x00_probe_one’: /usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.c:3047:6: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 11 has type ‘u64’ [-Wformat=] host->transportt, sht->vendor_id); ^ cc1: some warnings being treated as errors make[4]: *** [/usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla_os.o] Error 1 make[3]: *** [_module_/usr/src/scst-qla2xxx/drivers/scsi/qla2xxx] Error 2 make[3]: Leaving directory `/usr/src/linux-4.2.6' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/scst-qla2xxx/drivers/scsi/qla2xxx' make[1]: *** [qla2xxx_scst] Error 2 make[1]: Leaving directory `/usr/src/scst-qla2xxx/drivers/scsi/qla2xxx/qla2x00-target' make: *** [all] Error 2 |