Re: [PATCH v3 1/2] memblock: add assertion for zero allocation alignment

2013-03-04 Thread Vineet Gupta
Hi Andrew, On Friday 22 February 2013 02:23 AM, Tejun Heo wrote: > On Thu, Feb 21, 2013 at 12:52 PM, Vineet Gupta > wrote: >> This came to light when calling memblock allocator from arc port (for >> copying flattended DT). If a "0" alignment is passed, the allocator >> round_up() call incorrectly

Re: [PATCH v3 1/2] memblock: add assertion for zero allocation alignment

2013-02-21 Thread Tejun Heo
On Thu, Feb 21, 2013 at 12:52 PM, Vineet Gupta wrote: > This came to light when calling memblock allocator from arc port (for > copying flattended DT). If a "0" alignment is passed, the allocator > round_up() call incorrectly rounds up the size to 0. > > round_up(num, alignto) => ((num - 1) | (ali