From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.osdl.org (smtp.osdl.org [65.172.181.4]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.osdl.org", Issuer "OSDL Hostmaster" (not verified)) by ozlabs.org (Postfix) with ESMTP id 5243067DE5 for ; Thu, 28 Jul 2005 09:04:50 +1000 (EST) Date: Wed, 27 Jul 2005 16:03:15 -0700 From: Andrew Morton To: Paul Mackerras Message-Id: <20050727160315.02df6a75.akpm@osdl.org> In-Reply-To: <17128.4407.838024.111955@cargo.ozlabs.ibm.com> References: <11224856623638@foobar.com> <20050727131857.78a56972.akpm@osdl.org> <17128.4407.838024.111955@cargo.ozlabs.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linux-kernel@vger.kernel.org, linuxppc-embedded@ozlabs.org Subject: Re: [PATCH][1/3] ppc32: add 440ep support List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Paul Mackerras wrote: > > Andrew Morton writes: > > > Matt Porter wrote: > > > > > > +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.