OpenCloudOS-Kernel/drivers/scsi/hisi_sas
John Garry d0ef10c9a4 scsi: hisi_sas: redefine hisi_sas_phy.phy_type as u32
Element phy_type is a bitmask and it only ever has 2 bits possibly set,
and it is overkill to define as a u64, so redefine as a u32.

This change resolves static code check complaint that "phy->phy_type &=
~PORT_TYPE_SAS;" would unintentionally clear the high 32 bits as well.

Structure hisi_sas_phy is also reordered to ensure packing efficiency.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-06-26 15:01:04 -04:00
..
Kconfig scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
hisi_sas.h scsi: hisi_sas: redefine hisi_sas_phy.phy_type as u32 2017-06-26 15:01:04 -04:00
hisi_sas_main.c scsi: hisi_sas: modify internal abort dev flow for v3 hw 2017-06-19 21:31:26 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: add pci_dev in hisi_hba struct 2017-06-19 21:31:25 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: add pci_dev in hisi_hba struct 2017-06-19 21:31:25 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: modify internal abort dev flow for v3 hw 2017-06-19 21:31:26 -04:00