All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jingoo Han <jg1.han@samsung.com>
To: 'James Bottomley' <JBottomley@Parallels.com>
Cc: 'Adam Radford' <linuxraid@lsi.com>,
	'James Bottomley' <jejb@kernel.org>,
	linux-scsi@vger.kernel.org, Jingoo Han <jg1.han@samsung.com>
Subject: [PATCH V2 6/8] [SCSI] 3w-sas: add missing __iomem annotation
Date: Thu, 08 Aug 2013 10:16:58 +0900	[thread overview]
Message-ID: <002901ce93d4$faaa55e0$efff01a0$@samsung.com> (raw)

Added missing __iomem annotation in order to fix the following
sparse warnings:

drivers/scsi/3w-sas.c:1291:21: warning: incorrect type in argument 1 (different address spaces)
drivers/scsi/3w-sas.c:1291:21:    expected void const volatile [noderef] <asn:2>*addr
drivers/scsi/3w-sas.c:1291:21:    got void *reg
drivers/scsi/3w-sas.c:1295:29: warning: incorrect type in argument 1 (different address spaces)
drivers/scsi/3w-sas.c:1295:29:    expected void const volatile [noderef] <asn:2>*addr
drivers/scsi/3w-sas.c:1295:29:    got void *reg
drivers/scsi/3w-sas.c:1323:55: warning: incorrect type in argument 2 (different address spaces)
drivers/scsi/3w-sas.c:1323:55:    expected void *reg
drivers/scsi/3w-sas.c:1323:55:    got unsigned char [noderef] <asn:2>*
drivers/scsi/3w-sas.c:1328:55: warning: incorrect type in argument 2 (different address spaces)
drivers/scsi/3w-sas.c:1328:55:    expected void *reg
drivers/scsi/3w-sas.c:1328:55:    got unsigned char [noderef] <asn:2>*

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
No changes since v1:

 drivers/scsi/3w-sas.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c
index c845bdb..0d9c722 100644
--- a/drivers/scsi/3w-sas.c
+++ b/drivers/scsi/3w-sas.c
@@ -1282,7 +1282,8 @@ twl_interrupt_bail:
 } /* End twl_interrupt() */
 
 /* This function will poll for a register change */
-static int twl_poll_register(TW_Device_Extension *tw_dev, void *reg, u32 value, u32 result, int seconds)
+static int twl_poll_register(TW_Device_Extension *tw_dev, void __iomem *reg,
+			     u32 value, u32 result, int seconds)
 {
 	unsigned long before;
 	int retval = 1;
-- 
1.7.10.4



                 reply	other threads:[~2013-08-08  1:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='002901ce93d4$faaa55e0$efff01a0$@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=JBottomley@Parallels.com \
    --cc=jejb@kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linuxraid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.