public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* megaraid warnings
@ 2004-02-17 19:45 David Mosberger
  2004-02-17 19:58 ` Matthew Wilcox
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Mosberger @ 2004-02-17 19:45 UTC (permalink / raw)
  To: linux-ia64

The 2.6 megaraid driver causes several ugly warnings along the lines of:

drivers/scsi/megaraid.c:3500: warning: cast to pointer from integer of different size

I think those may be harmless (I don't have hardware to test this) but
it would still be better to fix the drivers so there are no warnings
(most likely by casting u32 addresses that are guaranteed to be <4GB
to "unsigned long" before converting them to a pointer).

Can someone look into this?

Thanks,

	--david

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: megaraid warnings
  2004-02-17 19:45 megaraid warnings David Mosberger
@ 2004-02-17 19:58 ` Matthew Wilcox
  2004-02-17 20:08 ` David Mosberger
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Matthew Wilcox @ 2004-02-17 19:58 UTC (permalink / raw)
  To: linux-ia64

On Tue, Feb 17, 2004 at 11:45:33AM -0800, David Mosberger wrote:
> The 2.6 megaraid driver causes several ugly warnings along the lines of:
> 
> drivers/scsi/megaraid.c:3500: warning: cast to pointer from integer of different size
> 
> I think those may be harmless (I don't have hardware to test this) but
> it would still be better to fix the drivers so there are no warnings
> (most likely by casting u32 addresses that are guaranteed to be <4GB
> to "unsigned long" before converting them to a pointer).
> 
> Can someone look into this?

This keeps coming up on linux-scsi; basically these are ioctls that
are called by some binary-only (and x86-binary-only at that) management
program.  so if they want to ship an ia64 version of their management
program, they'll have to fix this; otherwise the addresses are guaranteed
to be in the lower 32 bits of the address space.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: megaraid warnings
  2004-02-17 19:45 megaraid warnings David Mosberger
  2004-02-17 19:58 ` Matthew Wilcox
@ 2004-02-17 20:08 ` David Mosberger
  2004-02-17 20:09 ` Matthew Wilcox
  2004-02-17 20:18 ` David Mosberger
  3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2004-02-17 20:08 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Tue, 17 Feb 2004 19:58:47 +0000, Matthew Wilcox <willy@debian.org> said:

  Matthew> This keeps coming up on linux-scsi; basically these are
  Matthew> ioctls that are called by some binary-only (and
  Matthew> x86-binary-only at that) management program.  so if they
  Matthew> want to ship an ia64 version of their management program,
  Matthew> they'll have to fix this; otherwise the addresses are
  Matthew> guaranteed to be in the lower 32 bits of the address space.

Then why not disable the offending code for 64-bit platforms for the
time being?

	--david

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: megaraid warnings
  2004-02-17 19:45 megaraid warnings David Mosberger
  2004-02-17 19:58 ` Matthew Wilcox
  2004-02-17 20:08 ` David Mosberger
@ 2004-02-17 20:09 ` Matthew Wilcox
  2004-02-17 20:18 ` David Mosberger
  3 siblings, 0 replies; 5+ messages in thread
From: Matthew Wilcox @ 2004-02-17 20:09 UTC (permalink / raw)
  To: linux-ia64

On Tue, Feb 17, 2004 at 12:08:22PM -0800, David Mosberger wrote:
> >>>>> On Tue, 17 Feb 2004 19:58:47 +0000, Matthew Wilcox <willy@debian.org> said:
> 
>   Matthew> This keeps coming up on linux-scsi; basically these are
>   Matthew> ioctls that are called by some binary-only (and
>   Matthew> x86-binary-only at that) management program.  so if they
>   Matthew> want to ship an ia64 version of their management program,
>   Matthew> they'll have to fix this; otherwise the addresses are
>   Matthew> guaranteed to be in the lower 32 bits of the address space.
> 
> Then why not disable the offending code for 64-bit platforms for the
> time being?

Because it works when the x86 app is run in emulation.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: megaraid warnings
  2004-02-17 19:45 megaraid warnings David Mosberger
                   ` (2 preceding siblings ...)
  2004-02-17 20:09 ` Matthew Wilcox
@ 2004-02-17 20:18 ` David Mosberger
  3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2004-02-17 20:18 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Tue, 17 Feb 2004 20:09:18 +0000, Matthew Wilcox <willy@debian.org> said:

  Matthew> On Tue, Feb 17, 2004 at 12:08:22PM -0800, David Mosberger
  Matthew> wrote:
  >> >>>>> On Tue, 17 Feb 2004 19:58:47 +0000, Matthew Wilcox
  >> <willy@debian.org> said:

  Matthew> This keeps coming up on linux-scsi; basically these are
  Matthew> ioctls that are called by some binary-only (and
  Matthew> x86-binary-only at that) management program.  so if they
  Matthew> want to ship an ia64 version of their management program,
  Matthew> they'll have to fix this; otherwise the addresses are
  Matthew> guaranteed to be in the lower 32 bits of the address space.

  >>  Then why not disable the offending code for 64-bit platforms for
  >> the time being?

  Matthew> Because it works when the x86 app is run in emulation.

Ah, your mail wasn't clear on this.  In that case, I'd suggest to fix
the code as I suggested in the earlier mail.

	--david

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-02-17 20:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-17 19:45 megaraid warnings David Mosberger
2004-02-17 19:58 ` Matthew Wilcox
2004-02-17 20:08 ` David Mosberger
2004-02-17 20:09 ` Matthew Wilcox
2004-02-17 20:18 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox