Great job. This is due to the following patch not applied.
patch "(64fc9015fbeb scsi: smartpqi: Switch to attribute groups)"
2a47834d9452 scsi: smartpqi: Enable SATA NCQ priority in sysfs
Also due to a contextual difference because of
patch "(64fc9015fbeb scsi: smartpqi: Switch to attribute groups)"
I'll bet it's because of this HUNK:
@@ -7137,6 +7247,7 @@ static struct attribute *pqi_sdev_attrs[] = { &dev_attr_ssd_smart_path_enabled.attr, &dev_attr_raid_level.attr, &dev_attr_raid_bypass_cnt.attr,
+ &dev_attr_sas_ncq_prio_enable.attr,
NULL
};
.sdev_attrs...
That will work.
Great job. This is due to the following patch not applied.
patch "(64fc9015fbeb scsi: smartpqi: Switch to attribute groups)"
2a47834d9452 scsi: smartpqi: Enable SATA NCQ priority in sysfs
&dev_attr_ ssd_smart_ path_enabled. attr,
&dev_attr_ raid_level. attr,
&dev_attr_ raid_bypass_ cnt.attr, sas_ncq_ prio_enable. attr,
Also due to a contextual difference because of
patch "(64fc9015fbeb scsi: smartpqi: Switch to attribute groups)"
I'll bet it's because of this HUNK:
@@ -7137,6 +7247,7 @@ static struct attribute *pqi_sdev_attrs[] = {
+ &dev_attr_
NULL
};
The structure definition also was changed in this HUNK unique_ id, path_info, sas_address, ssd_smart_ path_enabled, raid_level, raid_bypass_ cnt, lunid.attr, unique_ id.attr, path_info. attr, sas_address. attr, ssd_smart_ path_enabled. attr, raid_level. attr, raid_bypass_ cnt.attr,
-static struct device_attribute *pqi_sdev_attrs[] = {
- &dev_attr_lunid,
- &dev_attr_
- &dev_attr_
- &dev_attr_
- &dev_attr_
- &dev_attr_
- &dev_attr_
+static struct attribute *pqi_sdev_attrs[] = {
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
NULL
};
So, needs to be
static struct device_attribute *pqi_sdev_attrs[] = {
and remove all of the .attr suffixes.
c1ea387d998a scsi: smartpqi: Stop using the SCSI pointer
.sdev_ groups = pqi_sdev_groups,
.shost_ groups = pqi_shost_groups,
Also due to this HUNK
@@ -7262,6 +7271,7 @@ static struct scsi_host_template pqi_driver_template = {
.map_queues = pqi_map_queues,
+ .cmd_size = sizeof(struct pqi_cmd_priv),
};
The context without
patch "(64fc9015fbeb scsi: smartpqi: Switch to attribute groups)"
would be
.shost_attrs = pqi_shost_attrs,
.shost_attrs = pqi_shost_attrs,
The HUNK that changed this is below:
.slave_ alloc = pqi_slave_alloc,
.slave_ configure = pqi_slave_ configure,
@@ -7153,8 +7157,8 @@ static struct scsi_host_template pqi_driver_template = {
.map_queues = pqi_map_queues,
- .sdev_attrs = pqi_sdev_attrs,
- .shost_attrs = pqi_shost_attrs,
+ .sdev_groups = pqi_sdev_groups,
+ .shost_groups = pqi_shost_groups,
};
Hope this helps.