summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas.h
diff options
context:
space:
mode:
authorBen Collins <ben.c@servergy.com>2013-09-13 12:46:44 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-12-19 07:39:03 -0800
commit11f8a7b31f2140b0dc164bb484281235ffbe51d3 (patch)
tree6bef4c31f17f7d992e141b99b499807c3fd37a9a /drivers/scsi/megaraid/megaraid_sas.h
parent6ad55502c65638cad53f211e301c724fe7e64a8e (diff)
downloadtalos-op-linux-11f8a7b31f2140b0dc164bb484281235ffbe51d3.tar.gz
talos-op-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.h1
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];
OpenPOWER on IntegriCloud