提交 8a232bb3 编写于 作者: C Christoph Hellwig 提交者: James Bottomley

megaraid_sas : add missing __iomem annotations

Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NSumit Saxena <sumit.saxena@avagotech.com>
Reviewed-by: NHannes Reinecke <hare@suse.de>
Reviewed-by: NTomas Henzl <thenzl@redhat.com>
Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
上级 6a6981fe
...@@ -1693,7 +1693,7 @@ struct megasas_instance { ...@@ -1693,7 +1693,7 @@ struct megasas_instance {
spinlock_t crashdump_lock; spinlock_t crashdump_lock;
struct megasas_register_set __iomem *reg_set; struct megasas_register_set __iomem *reg_set;
u32 *reply_post_host_index_addr[MR_MAX_MSIX_REG_ARRAY]; u32 __iomem *reply_post_host_index_addr[MR_MAX_MSIX_REG_ARRAY];
struct megasas_pd_list pd_list[MEGASAS_MAX_PD]; struct megasas_pd_list pd_list[MEGASAS_MAX_PD];
struct megasas_pd_list local_pd_list[MEGASAS_MAX_PD]; struct megasas_pd_list local_pd_list[MEGASAS_MAX_PD];
u8 ld_ids[MEGASAS_MAX_LD_IDS]; u8 ld_ids[MEGASAS_MAX_LD_IDS];
......
...@@ -802,8 +802,8 @@ megasas_adp_reset_gen2(struct megasas_instance *instance, ...@@ -802,8 +802,8 @@ megasas_adp_reset_gen2(struct megasas_instance *instance,
{ {
u32 retry = 0 ; u32 retry = 0 ;
u32 HostDiag; u32 HostDiag;
u32 *seq_offset = &reg_set->seq_offset; u32 __iomem *seq_offset = &reg_set->seq_offset;
u32 *hostdiag_offset = &reg_set->host_diag; u32 __iomem *hostdiag_offset = &reg_set->host_diag;
if (instance->instancet == &megasas_instance_template_skinny) { if (instance->instancet == &megasas_instance_template_skinny) {
seq_offset = &reg_set->fusion_seq_offset; seq_offset = &reg_set->fusion_seq_offset;
...@@ -4575,7 +4575,7 @@ static int megasas_init_fw(struct megasas_instance *instance) ...@@ -4575,7 +4575,7 @@ static int megasas_init_fw(struct megasas_instance *instance)
* It is used for all MPT based Adapters. * It is used for all MPT based Adapters.
*/ */
instance->reply_post_host_index_addr[0] = instance->reply_post_host_index_addr[0] =
(u32 *)((u8 *)instance->reg_set + (u32 __iomem *)((u8 __iomem *)instance->reg_set +
MPI2_REPLY_POST_HOST_INDEX_OFFSET); MPI2_REPLY_POST_HOST_INDEX_OFFSET);
/* Check if MSI-X is supported while in ready state */ /* Check if MSI-X is supported while in ready state */
...@@ -4607,7 +4607,8 @@ static int megasas_init_fw(struct megasas_instance *instance) ...@@ -4607,7 +4607,8 @@ static int megasas_init_fw(struct megasas_instance *instance)
*/ */
for (loop = 1; loop < MR_MAX_MSIX_REG_ARRAY; loop++) { for (loop = 1; loop < MR_MAX_MSIX_REG_ARRAY; loop++) {
instance->reply_post_host_index_addr[loop] = instance->reply_post_host_index_addr[loop] =
(u32 *)((u8 *)instance->reg_set + (u32 __iomem *)
((u8 __iomem *)instance->reg_set +
MPI2_SUP_REPLY_POST_HOST_INDEX_OFFSET MPI2_SUP_REPLY_POST_HOST_INDEX_OFFSET
+ (loop * 0x10)); + (loop * 0x10));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册