From: Jingoo Han <jg1.han@samsung.com>
To: 'James Bottomley' <JBottomley@Parallels.com>
Cc: 'Neela Syam Kolli' <megaraidlinux@lsi.com>,
'James Bottomley' <jejb@kernel.org>,
linux-scsi@vger.kernel.org, Jingoo Han <jg1.han@samsung.com>
Subject: [PATCH V2 4/8] [SCSI] megaraid: add missing __iomem annotation
Date: Thu, 08 Aug 2013 10:15:50 +0900 [thread overview]
Message-ID: <002701ce93d4$d234ab60$769e0220$@samsung.com> (raw)
Added missing __iomem annotation in order to fix the following
sparse warnings:
drivers/scsi/megaraid.c:4595:26: warning: incorrect type in argument 1 (different address spaces)
drivers/scsi/megaraid.c:4595:26: expected void volatile [noderef] <asn:2>*addr
drivers/scsi/megaraid.c:4595:26: got void *<noident>
drivers/scsi/megaraid.c:4653:26: warning: incorrect type in argument 1 (different address spaces)
drivers/scsi/megaraid.c:4653:26: expected void volatile [noderef] <asn:2>*addr
drivers/scsi/megaraid.c:4653:26: got void *<noident>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
No changes since v1:
drivers/scsi/megaraid.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c
index 90c95a3..a395207 100644
--- a/drivers/scsi/megaraid.c
+++ b/drivers/scsi/megaraid.c
@@ -4592,7 +4592,7 @@ megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
scsi_host_put(host);
out_iounmap:
if (flag & BOARD_MEMMAP)
- iounmap((void *)mega_baseport);
+ iounmap((void __iomem *)mega_baseport);
out_release_region:
if (flag & BOARD_MEMMAP)
release_mem_region(tbase, 128);
@@ -4650,7 +4650,7 @@ megaraid_remove_one(struct pci_dev *pdev)
/* Free our resources */
if (adapter->flag & BOARD_MEMMAP) {
- iounmap((void *)adapter->base);
+ iounmap((void __iomem *)adapter->base);
release_mem_region(adapter->host->base, 128);
} else
release_region(adapter->base, 16);
--
1.7.10.4
next reply other threads:[~2013-08-08 1:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 1:15 Jingoo Han [this message]
2013-08-08 11:30 ` [PATCH V2 4/8] [SCSI] megaraid: add missing __iomem annotation Saxena, Sumit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002701ce93d4$d234ab60$769e0220$@samsung.com' \
--to=jg1.han@samsung.com \
--cc=JBottomley@Parallels.com \
--cc=jejb@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=megaraidlinux@lsi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox