From: Bart Van Assche <bart.vanassche@sandisk.com>
To: Himanshu Madhani <himanshu.madhani@qlogic.com>, jbottomley@parallels.com
Cc: hch@lst.de, giridhar.malavali@qlogic.com,
andrew.vasquez@qlogic.com, linux-scsi@vger.kernel.org
Subject: Re: [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX.
Date: Fri, 10 Apr 2015 07:59:45 +0200 [thread overview]
Message-ID: <552766D1.1040902@sandisk.com> (raw)
In-Reply-To: <1428606008-14976-3-git-send-email-himanshu.madhani@qlogic.com>
On 04/09/15 20:59, Himanshu Madhani wrote:
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> ---
> drivers/scsi/qla2xxx/qla_tmpl.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c
> index a8c0c73..7a92f60 100644
> --- a/drivers/scsi/qla2xxx/qla_tmpl.c
> +++ b/drivers/scsi/qla2xxx/qla_tmpl.c
> @@ -190,7 +190,7 @@ static inline void
> qla27xx_write_reg(__iomem struct device_reg_24xx *reg,
> uint offset, uint32_t data, void *buf)
> {
> - __iomem void *window = reg + offset;
> + __iomem void *window = (void *)reg + offset;
>
> if (buf) {
> WRT_REG_DWORD(window, data);
>
Hello Himanshu,
The above patch introduces a new sparse warning since an __iomem
annotation is missing from the cast. Had you noticed that I had already
posted a fix for this crash in January that does not introduce a new
sparse warning ? See also http://thread.gmane.org/gmane.linux.scsi/98426.
Bart.
next prev parent reply other threads:[~2015-04-10 5:59 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-09 18:59 [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
2015-04-09 18:59 ` [PATCH 01/14] qla2xxx: Fix warnings reported by static checker Himanshu Madhani
2015-04-10 6:30 ` Hannes Reinecke
2015-04-09 18:59 ` [PATCH 02/14] qla2xxx: Fix crash due to wrong casting of reg for ISP27XX Himanshu Madhani
2015-04-10 5:59 ` Bart Van Assche [this message]
2015-04-10 6:31 ` Hannes Reinecke
2015-04-09 18:59 ` [PATCH 03/14] qla2xxx: Increase the wait time for firmware to be ready for P3P Himanshu Madhani
2015-04-10 6:31 ` Hannes Reinecke
2015-04-09 18:59 ` [PATCH 04/14] qla2xxx: Fix beacon blink for ISP27XX Himanshu Madhani
2015-04-10 6:32 ` Hannes Reinecke
2015-04-09 18:59 ` [PATCH 05/14] qla2xxx: Add support to load firmware from file for ISP 26XX/27XX Himanshu Madhani
2015-04-10 6:33 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 06/14] qla2xxx: Add message for sucessful FW dump collected for ISP27XX Himanshu Madhani
2015-04-10 6:33 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 07/14] qla2xxx: Add udev notification to save fw dump " Himanshu Madhani
2015-04-10 6:35 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 08/14] qla2xxx: Add serdes read/write support " Himanshu Madhani
2015-04-10 6:35 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 09/14] qla2xxx: Add debugging info for MBX timeout Himanshu Madhani
2015-04-10 6:36 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 10/14] qla2xxx: Disable Interrupt handshake for ISP27XX Himanshu Madhani
2015-04-10 6:37 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 11/14] qla2xxx: Prevent multiple firmware dump collection " Himanshu Madhani
2015-04-10 6:37 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 12/14] qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled Himanshu Madhani
2015-04-10 6:38 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 13/14] qla2xxx: Restore physical port WWPN only, when port down detected for FA-WWPN port Himanshu Madhani
2015-04-10 6:39 ` Hannes Reinecke
2015-04-09 19:00 ` [PATCH 14/14] qla2xxx: Update driver version to 8.07.00.18-k Himanshu Madhani
2015-04-10 6:39 ` Hannes Reinecke
2015-04-10 5:53 ` [PATCH 00/14] qla2xxx: Patches for scsi "misc" branch Bart Van Assche
2015-04-10 15:46 ` James Bottomley
2015-04-10 18:46 ` Himanshu Madhani
2015-06-02 19:52 ` Himanshu Madhani
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=552766D1.1040902@sandisk.com \
--to=bart.vanassche@sandisk.com \
--cc=andrew.vasquez@qlogic.com \
--cc=giridhar.malavali@qlogic.com \
--cc=hch@lst.de \
--cc=himanshu.madhani@qlogic.com \
--cc=jbottomley@parallels.com \
--cc=linux-scsi@vger.kernel.org \
/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.