Re: [PATCH] of: Fix comparison of reserved memory regions

2015-12-06 Thread Michael Ellerman
On Sun, 2015-12-06 at 14:31 -0600, Rob Herring wrote: > On Sat, Dec 5, 2015 at 5:43 AM, Michael Ellerman > wrote: > > On 5 December 2015 04:07:39 GMT+11:00, Mitchel Humpherys > > wrote: > > > On Wed, Nov 18 2015 at 09:46:38 PM, Michael Ellerman > > > wrote: > > > > Fix it by just doing the sta

Re: [PATCH] of: Fix comparison of reserved memory regions

2015-12-06 Thread Rob Herring
On Sat, Dec 5, 2015 at 5:43 AM, Michael Ellerman wrote: > > > On 5 December 2015 04:07:39 GMT+11:00, Mitchel Humpherys > wrote: >>On Wed, Nov 18 2015 at 09:46:38 PM, Michael Ellerman >> wrote: >>> In order to check for overlapping reserved memory regions, we first >>need >>> to sort the array of

Re: [PATCH] of: Fix comparison of reserved memory regions

2015-12-05 Thread Michael Ellerman
On 5 December 2015 04:07:39 GMT+11:00, Mitchel Humpherys wrote: >On Wed, Nov 18 2015 at 09:46:38 PM, Michael Ellerman > wrote: >> In order to check for overlapping reserved memory regions, we first >need >> to sort the array of memory regions. This is implemented using >sort(), >> and a custom

Re: [PATCH] of: Fix comparison of reserved memory regions

2015-12-04 Thread Mitchel Humpherys
On Wed, Nov 18 2015 at 09:46:38 PM, Michael Ellerman wrote: > In order to check for overlapping reserved memory regions, we first need > to sort the array of memory regions. This is implemented using sort(), > and a custom comparison function __rmem_cmp(). > > Unfortunatley __rmem_cmp() doesn't w