Thread (7 messages) 7 messages, 3 authors, 2009-01-06

Re: [PATCH] net/ehea: use consistent type

From: Stephen Rothwell <hidden>
Date: 2009-01-06 00:05:24
Also in: linuxppc-dev

Hi Dave,

On Wed, 31 Dec 2008 20:09:01 +1100 Benjamin Herrenschmidt [off-list ref] wrote:
On Tue, 2008-12-30 at 21:51 -0800, David Miller wrote:
quoted
From: Stephen Rothwell <redacted>
Date: Wed, 31 Dec 2008 14:17:30 +1100
quoted
ehea_plpar_hcall9() takes an unsigned long array, so pass that.

This change will avoid some warnings when we change u64 to unsigned
long long.

Signed-off-by: Stephen Rothwell <redacted>
Patch rejected, for the same reasons as the other driver
change.

We're not going to poop up some drivers with the assumption that long
is 64-bit.
Well, in that case, this patch is actually correct without considering
the u64 change. The array is what lands in the registers of the pHyp
call, so strictly speaking, it's an array of unsigned long's (ie, 32-bit
on a 32-bit platform, 64-bit on a 64-bit platform), not an array of
u64's. This function being a wrapper on that pHyp call, it may as well
use the right type.
So, any response?
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Attachments

  • (unnamed) [application/pgp-signature] 197 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help