[PATCH] powerpc: Fix integer constant warning

David Howells dhowells at redhat.com
Tue Jun 8 23:12:26 EST 2010


Steve Best <sfbest at us.ibm.com> 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


More information about the Linuxppc-dev mailing list