From: Martin Bligh <mbligh@google.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: akpm@linux-foundation.org, megaraidlinux@lsi.com,
linux-scsi@vger.kernel.org
Subject: Re: [patch 07/25] scsi: cover up bugs^W^W^WFix up compiler warnings in megaraid driver
Date: Wed, 23 May 2007 15:54:09 -0700 [thread overview]
Message-ID: <4654C611.9070302@google.com> (raw)
In-Reply-To: <1179960760.5569.45.camel@mulgrave.il.steeleye.com>
James Bottomley wrote:
> On Wed, 2007-05-23 at 14:41 -0700, akpm@linux-foundation.org wrote:
>> From: Martin Bligh <mbligh@google.com>
>>
>> Fix up compiler warnings in megaraid driver
>>
>> [akpm@osdl.org: build fix]
>> Signed-off-by: Martin J. Bligh <mbligh@google.com>
>> Cc: James Bottomley <James.Bottomley@steeleye.com>
>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>> ---
>>
>> drivers/scsi/megaraid.c | 22 +++++++++++++---------
>> 1 files changed, 13 insertions(+), 9 deletions(-)
>>
>> diff -puN drivers/scsi/megaraid.c~scsi-cover-up-bugs-fix-up-compiler-warnings-in-megaraid-driver drivers/scsi/megaraid.c
>> --- a/drivers/scsi/megaraid.c~scsi-cover-up-bugs-fix-up-compiler-warnings-in-megaraid-driver
>> +++ a/drivers/scsi/megaraid.c
>> @@ -73,10 +73,14 @@ static unsigned short int max_mbox_busy_
>> module_param(max_mbox_busy_wait, ushort, 0);
>> MODULE_PARM_DESC(max_mbox_busy_wait, "Maximum wait for mailbox in microseconds if busy (default=MBOX_BUSY_WAIT=10)");
>>
>> -#define RDINDOOR(adapter) readl((adapter)->mmio_base + 0x20)
>> -#define RDOUTDOOR(adapter) readl((adapter)->mmio_base + 0x2C)
>> -#define WRINDOOR(adapter,value) writel(value, (adapter)->mmio_base + 0x20)
>> -#define WROUTDOOR(adapter,value) writel(value, (adapter)->mmio_base + 0x2C)
>> +#define RDINDOOR(adapter) readl((volatile void __iomem *) \
>> + (adapter)->base + 0x20)
>> +#define RDOUTDOOR(adapter) readl((volatile void __iomem *) \
>> + (adapter)->base + 0x2C)
>> +#define WRINDOOR(adapter,value) writel(value, (volatile void __iomem *)\
>> + (adapter)->base + 0x20)
>> +#define WROUTDOOR(adapter,value) writel(value, (volatile void __iomem *)\
>> + (adapter)->base + 0x2C)
>
> This is both unnecessary and wrong ... it coerces the iomem value and
> would squelch the useful warnings gcc would issue if base ever lost its
> iomem annotation.
Is there another, better, way to stop it spewing compile warnings like
something out of a horror movie?
M.
next prev parent reply other threads:[~2007-05-23 22:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-23 21:41 [patch 07/25] scsi: cover up bugs^W^W^WFix up compiler warnings in megaraid driver akpm
2007-05-23 22:52 ` James Bottomley
2007-05-23 22:54 ` Martin Bligh [this message]
2007-05-23 22:59 ` James Bottomley
2007-05-23 23:07 ` Andrew Morton
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=4654C611.9070302@google.com \
--to=mbligh@google.com \
--cc=James.Bottomley@SteelEye.com \
--cc=akpm@linux-foundation.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 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.