From: Stefan Roas <sroas@roath.org>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH]: Fix compiler warning in drivers/scsi/dpt_i2o.c
Date: Mon, 14 Mar 2005 21:06:26 +0100 [thread overview]
Message-ID: <20050314200626.GD1733@roath.org> (raw)
In-Reply-To: <20050314182444.GA6903@home.fluff.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon Mar 14, 2005 at 18:24:44, Ben Dooks wrote:
> This patch looks suspiciously like it is sweeping the problem
> `under the carpet`. Does bus_to_virt() return an `void __iomem *`?
>
> reply should really be an `void __iomem *`
bus_to_virt returns void *.
adpt_isr casts the return value to ulong though and adpt_i2o_to_scsi
takes an ulong as its first argument and passes it to readl without a
cast then.
But I agree, the patch just silences the compiler warning. Maybe it
would be a better solution to change the types of reply and msg in
adpt_isr as well as the first argument to adpt_i2o_to_scsi to void
__iomem *.
Best Regards,
- --
Stefan Roas
sroas@roath.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFCNe7CwvfNuQ9pAq8RAmDBAJ0XyRMogsfgX3L6+SzIzp6VPYuynQCgjpZ0
94sI0Fr7V8anGTsQQw+COcM=
=+qfk
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2005-03-14 20:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-13 22:43 [PATCH]: Fix compiler warning in drivers/scsi/dpt_i2o.c Stefan Roas
2005-03-14 18:24 ` Ben Dooks
2005-03-14 20:06 ` Stefan Roas [this message]
2005-03-14 23:26 ` Russell King
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=20050314200626.GD1733@roath.org \
--to=sroas@roath.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox