diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2011-09-23 21:09:11 -0400 |
|---|---|---|
| committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-02 13:51:53 -0400 |
| commit | 05a2a17317b48eb16a167c8c2932ba7b3cdee89e (patch) | |
| tree | 18eff1df18a28c5cd07fd1347823948b115a2f94 /include/scsi | |
| parent | bb041a0e9c31229071b6e56e1d0d8374af0d2038 (diff) | |
[SCSI] libsas: fix warnings when checking sata/stp protocol
Several sas drivers legitimately check the protocol against the union of
SAS_PROTOCOL_SATA and SAS_PROTOCOL_STP. Provide a SAS_PROTOCOL_STP_ALL
to silence warnings like:
drivers/scsi/pm8001/pm8001_sas.c:438:3: warning: case value ‘5’ not in enumerated type ‘enum sas_protocol’ [-Wswitch]
drivers/scsi/mvsas/mv_sas.c:798:2: warning: case value ‘5’ not in enumerated type ‘enum sas_protocol’ [-Wswitch]
drivers/scsi/mvsas/mv_sas.c:1783:2: warning: case value ‘5’ not in enumerated type ‘enum sas_protocol’ [-Wswitch]
drivers/scsi/mvsas/mv_sas.c:1886:2: warning: case value ‘5’ not in enumerated type ‘enum sas_protocol’ [-Wswitch]
drivers/scsi/isci/request.c:3565:2: warning: case value ‘5’ not in enumerated type ‘enum sas_protocol’ [-Wswitch]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi')
| -rw-r--r-- | include/scsi/sas.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/sas.h b/include/scsi/sas.h index 07d504f3981c..cfdbe9501593 100644 --- a/include/scsi/sas.h +++ b/include/scsi/sas.h | |||
| @@ -108,6 +108,7 @@ enum sas_protocol { | |||
| 108 | SAS_PROTOCOL_STP = 0x04, | 108 | SAS_PROTOCOL_STP = 0x04, |
| 109 | SAS_PROTOCOL_SSP = 0x08, | 109 | SAS_PROTOCOL_SSP = 0x08, |
| 110 | SAS_PROTOCOL_ALL = 0x0E, | 110 | SAS_PROTOCOL_ALL = 0x0E, |
| 111 | SAS_PROTOCOL_STP_ALL = SAS_PROTOCOL_STP|SAS_PROTOCOL_SATA, | ||
| 111 | }; | 112 | }; |
| 112 | 113 | ||
| 113 | /* From the spec; local phys only */ | 114 | /* From the spec; local phys only */ |
