From: Sumit Saxena Subject: RE: [PATCH 02/10] megaraid_sas: add missing __iomem annotations Date: Tue, 13 Jan 2015 12:35:54 +0530 Message-ID: References: <1420909883-19479-1-git-send-email-hch@lst.de> <1420909883-19479-3-git-send-email-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from exprod7og129.obsmtp.com ([64.18.2.122]:44179 "EHLO exprod7og129.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbbAMHF6 (ORCPT ); Tue, 13 Jan 2015 02:05:58 -0500 Received: by mail-qc0-f179.google.com with SMTP id c9so984488qcz.10 for ; Mon, 12 Jan 2015 23:05:55 -0800 (PST) In-Reply-To: <1420909883-19479-3-git-send-email-hch@lst.de> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Christoph Hellwig , Kashyap Desai Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org >-----Original Message----- >From: Christoph Hellwig [mailto:hch@lst.de] >Sent: Saturday, January 10, 2015 10:41 PM >To: Sumit.Saxena@avagotech.com; kashyap.desai@avagotech.com >Cc: martin.petersen@oracle.com; linux-scsi@vger.kernel.org >Subject: [PATCH 02/10] megaraid_sas: add missing __iomem annotations > >Signed-off-by: Christoph Hellwig >--- > drivers/scsi/megaraid/megaraid_sas.h | 2 +- > drivers/scsi/megaraid/megaraid_sas_base.c | 9 +++++---- > 2 files changed, 6 insertions(+), 5 deletions(-) > >diff --git a/drivers/scsi/megaraid/megaraid_sas.h >b/drivers/scsi/megaraid/megaraid_sas.h >index 14e5c7c..ecc4321 100644 >--- a/drivers/scsi/megaraid/megaraid_sas.h >+++ b/drivers/scsi/megaraid/megaraid_sas.h >@@ -1681,7 +1681,7 @@ struct megasas_instance { > spinlock_t crashdump_lock; > > 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 local_pd_list[MEGASAS_MAX_PD]; > u8 ld_ids[MEGASAS_MAX_LD_IDS]; >diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c >b/drivers/scsi/megaraid/megaraid_sas_base.c >index 2eb5233..875db92 100644 >--- a/drivers/scsi/megaraid/megaraid_sas_base.c >+++ b/drivers/scsi/megaraid/megaraid_sas_base.c >@@ -814,8 +814,8 @@ megasas_adp_reset_gen2(struct megasas_instance >*instance, { > u32 retry = 0 ; > u32 HostDiag; >- u32 *seq_offset = ®_set->seq_offset; >- u32 *hostdiag_offset = ®_set->host_diag; >+ u32 __iomem *seq_offset = ®_set->seq_offset; >+ u32 __iomem *hostdiag_offset = ®_set->host_diag; > > if (instance->instancet == &megasas_instance_template_skinny) { > seq_offset = ®_set->fusion_seq_offset; @@ -4499,7 >+4499,7 @@ static int megasas_init_fw(struct megasas_instance *instance) > * It is used for all MPT based Adapters. > */ > 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); > > /* Check if MSI-X is supported while in ready state */ @@ -4531,7 >+4531,8 @@ static int megasas_init_fw(struct megasas_instance *instance) > */ > for (loop = 1; loop < MR_MAX_MSIX_REG_ARRAY; >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 > + (loop * 0x10)); > } Acked-by: Sumit Saxena >-- >1.9.1