diff options
author | Ben Collins <ben.c@servergy.com> | 2013-09-13 18:46:44 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-12-19 16:39:03 +0100 |
commit | 11f8a7b31f2140b0dc164bb484281235ffbe51d3 (patch) | |
tree | 6bef4c31f17f7d992e141b99b499807c3fd37a9a /drivers/scsi/megaraid/megaraid_sas.h | |
parent | [SCSI] Update documentation (diff) | |
download | linux-11f8a7b31f2140b0dc164bb484281235ffbe51d3.tar.xz linux-11f8a7b31f2140b0dc164bb484281235ffbe51d3.zip |
[SCSI] megaraid: Use resource_size_t for PCI resources, not long
The assumption that sizeof(long) >= sizeof(resource_size_t) can lead to
truncation of the PCI resource address, meaning this driver didn't work
on 32-bit systems with 64-bit PCI adressing ranges.
Signed-off-by: Ben Collins <ben.c@servergy.com>
Acked-by: Sumit Saxena <sumit.saxena@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas.h')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index e9e543c58485..34452ea386ac 100644 --- a/drivers/scsi/megaraid/megaraid_sas.h +++ b/drivers/scsi/megaraid/megaraid_sas.h @@ -1527,7 +1527,6 @@ struct megasas_instance { u32 *reply_queue; dma_addr_t reply_queue_h; - unsigned long base_addr; struct megasas_register_set __iomem *reg_set; u32 *reply_post_host_index_addr[MR_MAX_MSIX_REG_ARRAY]; struct megasas_pd_list pd_list[MEGASAS_MAX_PD]; |