root@pve12:/usr/src/mpt2sas/mpt3sas# bash compile.sh
rm: cannot remove 'tags': No such file or directory
compile.sh: line 50: ctags: command not found
make: Entering directory '/usr/src/linux-headers-4.10.17-3-pve'
LD /usr/src/mpt2sas/mpt3sas/built-in.o
CC [M] /usr/src/mpt2sas/mpt3sas/mpt3sas_base.o
CC [M] /usr/src/mpt2sas/mpt3sas/mpt3sas_config.o
CC [M] /usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.o
CC [M] /usr/src/mpt2sas/mpt3sas/mpt3sas_scsih.o
In file included from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.h:70:0,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_config.c:56:
/usr/src/mpt2sas/mpt3sas/mpt3sas_compatibility.h:50:12: error: conflicting types for ‘scsi_internal_device_block’
extern int scsi_internal_device_block(struct scsi_device *sdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/scsi/scsi_cmnd.h:10:0,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.h:60,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_config.c:56:
./include/scsi/scsi_device.h:478:5: note: previous declaration of ‘scsi_internal_device_block’ was here
int scsi_internal_device_block(struct scsi_device *sdev, bool wait);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.h:70:0,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.c:66:
/usr/src/mpt2sas/mpt3sas/mpt3sas_compatibility.h:50:12: error: conflicting types for ‘scsi_internal_device_block’
extern int scsi_internal_device_block(struct scsi_device *sdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/scsi/scsi_cmnd.h:10:0,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.h:60,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.c:66:
./include/scsi/scsi_device.h:478:5: note: previous declaration of ‘scsi_internal_device_block’ was here
int scsi_internal_device_block(struct scsi_device *sdev, bool wait);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.h:70:0,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_scsih.c:61:
/usr/src/mpt2sas/mpt3sas/mpt3sas_compatibility.h:50:12: error: conflicting types for ‘scsi_internal_device_block’
extern int scsi_internal_device_block(struct scsi_device *sdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/scsi/scsi_cmnd.h:10:0,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.h:60,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_scsih.c:61:
./include/scsi/scsi_device.h:478:5: note: previous declaration of ‘scsi_internal_device_block’ was here
int scsi_internal_device_block(struct scsi_device *sdev, bool wait);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.h:70:0,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:51:
/usr/src/mpt2sas/mpt3sas/mpt3sas_compatibility.h:50:12: error: conflicting types for ‘scsi_internal_device_block’
extern int scsi_internal_device_block(struct scsi_device *sdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/scsi/scsi_cmnd.h:10:0,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_base.h:60,
from /usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:51:
./include/scsi/scsi_device.h:478:5: note: previous declaration of ‘scsi_internal_device_block’ was here
int scsi_internal_device_block(struct scsi_device *sdev, bool wait);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_base.c: In function ‘_base_display_event_data’:
/usr/src/mpt2sas/mpt3sas/mpt3sas_base.c:820:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (event_data->DiscoveryStatus)
^~
/usr/src/mpt2sas/mpt3sas/mpt3sas_base.c:823:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
printk("\n");
^~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:300:1: warning: data definition has no type or storage class
CONFIGFS_ATTR_STRUCT(mpt3sas_driver);
^~~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:300:1: error: type defaults to ‘int’ in declaration of ‘CONFIGFS_ATTR_STRUCT’ [-Werror=implicit-int]
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:300:1: warning: parameter names (without types) in function declaration
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:333:1: warning: data definition has no type or storage class
CONFIGFS_ATTR_STRUCT(mpt3sas_hba);
^~~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:333:1: error: type defaults to ‘int’ in declaration of ‘CONFIGFS_ATTR_STRUCT’ [-Werror=implicit-int]
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:333:1: warning: parameter names (without types) in function declaration
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:370:1: warning: data definition has no type or storage class
CONFIGFS_ATTR_STRUCT(mpt3sas_device);
^~~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:370:1: error: type defaults to ‘int’ in declaration of ‘CONFIGFS_ATTR_STRUCT’ [-Werror=implicit-int]
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:370:1: warning: parameter names (without types) in function declaration
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:373:8: error: variable ‘mpt3sas_device_attr_WWID’ has initializer but incomplete type
struct mpt3sas_device_attribute mpt3sas_device_attr_##_name = \
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:451:1: note: in expansion of macro ‘MPT3SAS_DEVICE_ATTR’
MPT3SAS_DEVICE_ATTR(WWID, S_IRUGO | S_IWUSR, mpt3sas_device_WWID_read,
^~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:374:1: error: implicit declaration of function ‘__CONFIGFS_ATTR’ [-Werror=implicit-function-declaration]
__CONFIGFS_ATTR(_name, _mode, _show, _store)
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:451:1: note: in expansion of macro ‘MPT3SAS_DEVICE_ATTR’
MPT3SAS_DEVICE_ATTR(WWID, S_IRUGO | S_IWUSR, mpt3sas_device_WWID_read,
^~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:451:21: error: ‘WWID’ undeclared here (not in a function)
MPT3SAS_DEVICE_ATTR(WWID, S_IRUGO | S_IWUSR, mpt3sas_device_WWID_read,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:374:17: note: in definition of macro ‘MPT3SAS_DEVICE_ATTR’
__CONFIGFS_ATTR(_name, _mode, _show, _store)
^~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:373:8: error: variable ‘mpt3sas_device_attr_slot’ has initializer but incomplete type
struct mpt3sas_device_attribute mpt3sas_device_attr_##_name = \
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:497:1: note: in expansion of macro ‘MPT3SAS_DEVICE_ATTR’
MPT3SAS_DEVICE_ATTR(slot, S_IRUGO | S_IWUSR, mpt3sas_device_slot_read,
^~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:497:21: error: ‘slot’ undeclared here (not in a function)
MPT3SAS_DEVICE_ATTR(slot, S_IRUGO | S_IWUSR, mpt3sas_device_slot_read,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:374:17: note: in definition of macro ‘MPT3SAS_DEVICE_ATTR’
__CONFIGFS_ATTR(_name, _mode, _show, _store)
^~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:373:8: error: variable ‘mpt3sas_device_attr_serial_number’ has initializer but incomplete type
struct mpt3sas_device_attribute mpt3sas_device_attr_##_name = \
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:548:1: note: in expansion of macro ‘MPT3SAS_DEVICE_ATTR’
MPT3SAS_DEVICE_ATTR(serial_number, S_IRUGO | S_IWUSR, mpt3sas_device_serial_number_read,
^~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:548:21: error: ‘serial_number’ undeclared here (not in a function)
MPT3SAS_DEVICE_ATTR(serial_number, S_IRUGO | S_IWUSR, mpt3sas_device_serial_number_read,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:374:17: note: in definition of macro ‘MPT3SAS_DEVICE_ATTR’
__CONFIGFS_ATTR(_name, _mode, _show, _store)
^~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:373:8: error: variable ‘mpt3sas_device_attr_vfid_mask’ has initializer but incomplete type
struct mpt3sas_device_attribute mpt3sas_device_attr_##_name = \
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1060:1: note: in expansion of macro ‘MPT3SAS_DEVICE_ATTR’
MPT3SAS_DEVICE_ATTR(vfid_mask, S_IRUGO | S_IWUSR,
^~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1060:21: error: ‘vfid_mask’ undeclared here (not in a function)
MPT3SAS_DEVICE_ATTR(vfid_mask, S_IRUGO | S_IWUSR,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:374:17: note: in definition of macro ‘MPT3SAS_DEVICE_ATTR’
__CONFIGFS_ATTR(_name, _mode, _show, _store)
^~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:377:8: error: variable ‘mpt3sas_device_attr_description’ has initializer but incomplete type
struct mpt3sas_device_attribute mpt3sas_device_attr_##_name = \
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1085:1: note: in expansion of macro ‘MPT3SAS_DEVICE_ATTR_RO’
MPT3SAS_DEVICE_ATTR_RO(description, mpt3sas_device_description_read);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:378:1: error: implicit declaration of function ‘__CONFIGFS_ATTR_RO’ [-Werror=implicit-function-declaration]
__CONFIGFS_ATTR_RO(_name, _show);
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1085:1: note: in expansion of macro ‘MPT3SAS_DEVICE_ATTR_RO’
MPT3SAS_DEVICE_ATTR_RO(description, mpt3sas_device_description_read);
^~~~~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1085:24: error: ‘description’ undeclared here (not in a function)
MPT3SAS_DEVICE_ATTR_RO(description, mpt3sas_device_description_read);
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:378:20: note: in definition of macro ‘MPT3SAS_DEVICE_ATTR_RO’
__CONFIGFS_ATTR_RO(_name, _show);
^~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1088:2: error: invalid use of undefined type ‘struct mpt3sas_device_attribute’
&mpt3sas_device_attr_WWID.attr,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1089:2: error: invalid use of undefined type ‘struct mpt3sas_device_attribute’
&mpt3sas_device_attr_slot.attr,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1090:2: error: invalid use of undefined type ‘struct mpt3sas_device_attribute’
&mpt3sas_device_attr_serial_number.attr,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1091:2: error: invalid use of undefined type ‘struct mpt3sas_device_attribute’
&mpt3sas_device_attr_vfid_mask.attr,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1092:2: error: invalid use of undefined type ‘struct mpt3sas_device_attribute’
&mpt3sas_device_attr_description.attr,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1170:1: warning: data definition has no type or storage class
CONFIGFS_ATTR_OPS(mpt3sas_device);
^~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1170:1: error: type defaults to ‘int’ in declaration of ‘CONFIGFS_ATTR_OPS’ [-Werror=implicit-int]
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1170:1: warning: parameter names (without types) in function declaration
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1172:2: error: unknown field ‘show_attribute’ specified in initializer
.show_attribute = mpt3sas_device_attr_show,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1172:20: error: ‘mpt3sas_device_attr_show’ undeclared here (not in a function)
.show_attribute = mpt3sas_device_attr_show,
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1172:20: error: initializer element is not constant
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1172:20: note: (near initialization for ‘mpt3sas_device_item_ops.release’)
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1173:2: error: unknown field ‘store_attribute’ specified in initializer
.store_attribute = mpt3sas_device_attr_store,
^
/usr/src/mpt2sas/mpt3sas/mpt3sas_configfs.c:1173:21: error: ‘mpt3sas_device_attr_store’ undeclared here (not in a function)
.store_attribute = mpt3sas_device_attr_store,
^~~~~~~~~~~~~~~~~~~~~~~~~