Subject: Re: [PATCH] powerpc: Fix integer constant warning

From: David Howells <[email-masked]>
Date: Tue, 08 Jun 2010 14:12:26 +0100

Steve Best <[email-masked]> wrote:

> -#define KERNELBASE (0xc000000000000000)
> +#define KERNELBASE (0xc000000000000000ULL)

Is this the right fix?  The code producing the warning is subtracting
0xc000000000000000 from a 32-bit number:

	naca = ntohl(*((u_int32_t*) &inbuf[0x0C])) - KERNELBASE;

which seems distinctly odd.

David