[PATCH] Compile failure fix for ppc on 2.6.17-rc4-mm3 (2nd attempt)

Paul Mackerras paulus at samba.org
Fri Jun 9 19:36:56 EST 2006


Mel Gorman writes:

> +	res->end = -(-res->end & ~(unsigned long)mask); \
> +	res->end += mask; \

I think this is equivalent to

	res->end = (res->end + mask) | mask;

and I have to say the latter seems more understandable to me (and
doesn't need a cast) ...

Regards,
Paul.




More information about the Linuxppc-dev mailing list