Thread (7 messages) 7 messages, 4 authors, 2005-07-28

Re: [PATCH][1/3] ppc32: add 440ep support

From: Andrew Morton <hidden>
Date: 2005-07-27 23:09:26
Also in: lkml

Paul Mackerras [off-list ref] wrote:
Andrew Morton writes:
quoted
Matt Porter [off-list ref] wrote:
quoted
+static u64 dma_mask = 0xffffffffULL;
I'm sure you're totally uninterested in this, but the above will probably
generate warnings on (say) ppc64, where u64 is implemented as unsigned
long.

I usually chuck a simple `-1' in there and the compiler always gets it
right, regardless of signedness and size and architecture.
Umm, I think we actually want 2^32-1 not -1, don't we?
Doh.  Cant coun't.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help