aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/csiostor
diff options
context:
space:
mode:
authorPraveen Madhavan <praveenm@chelsio.com>2015-01-09 10:55:16 -0500
committerDavid S. Miller <davem@davemloft.net>2015-01-12 00:40:30 -0500
commit78890ed7549444fa9b9ff7e544d6bdd44b4c9566 (patch)
tree4f47b82ce8462d80f2ae85efe3da06adf5ab838c /drivers/scsi/csiostor
parentd3b4b26173ee45a8097a64330ae4a509f4e5db0b (diff)
csiostor:fix sparse warnings
This patch fixes sparse warning reported by kbuild. Apply this on net-next since it depends on previous commit. drivers/scsi/csiostor/csio_hw.c:259:17: sparse: cast to restricted __le32 drivers/scsi/csiostor/csio_hw.c:536:31: sparse: incorrect type in assignment (different base types) drivers/scsi/csiostor/csio_hw.c:536:31: expected unsigned int [unsigned] [usertype] <noident> drivers/scsi/csiostor/csio_hw.c:536:31: got restricted __be32 [usertype] <noident> >> drivers/scsi/csiostor/csio_hw.c:2012:5: sparse: symbol 'csio_hw_prep_fw' was not declared. Should it be static? Signed-off-by: Praveen Madhavan <praveenm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/csiostor')
-rw-r--r--drivers/scsi/csiostor/csio_hw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c
index b70c15fb1e97..5c31fa603de4 100644
--- a/drivers/scsi/csiostor/csio_hw.c
+++ b/drivers/scsi/csiostor/csio_hw.c
@@ -256,7 +256,7 @@ csio_hw_seeprom_read(struct csio_hw *hw, uint32_t addr, uint32_t *data)
256 } 256 }
257 257
258 pci_read_config_dword(hw->pdev, base + PCI_VPD_DATA, data); 258 pci_read_config_dword(hw->pdev, base + PCI_VPD_DATA, data);
259 *data = le32_to_cpu(*data); 259 *data = le32_to_cpu(*(__le32 *)data);
260 260
261 return 0; 261 return 0;
262} 262}
@@ -533,7 +533,7 @@ csio_hw_read_flash(struct csio_hw *hw, uint32_t addr, uint32_t nwords,
533 if (ret) 533 if (ret)
534 return ret; 534 return ret;
535 if (byte_oriented) 535 if (byte_oriented)
536 *data = htonl(*data); 536 *data = (__force __u32) htonl(*data);
537 } 537 }
538 return 0; 538 return 0;
539} 539}
@@ -2009,7 +2009,7 @@ static struct fw_info *find_fw_info(int chip)
2009 return NULL; 2009 return NULL;
2010} 2010}
2011 2011
2012int csio_hw_prep_fw(struct csio_hw *hw, struct fw_info *fw_info, 2012static int csio_hw_prep_fw(struct csio_hw *hw, struct fw_info *fw_info,
2013 const u8 *fw_data, unsigned int fw_size, 2013 const u8 *fw_data, unsigned int fw_size,
2014 struct fw_hdr *card_fw, enum csio_dev_state state, 2014 struct fw_hdr *card_fw, enum csio_dev_state state,
2015 int *reset) 2015 int *reset)