Re: [PATCH v8 01/16] FDT: introduce global phandle allocation

2017-02-02 Thread Andre Przywara
Hi Marc, On 01/02/17 17:13, Marc Zyngier wrote: > On Wed, Feb 01 2017 at 4:44:19 pm GMT, André Przywara > wrote: > > Hi Andre, > >> Hi Marc, Will, >> >> On 09/12/16 12:03, Marc Zyngier wrote: >>> On 04/11/16 17:31, Andre Przywara wrote: Allocating an FDT phandle

Re: [PATCH v8 01/16] FDT: introduce global phandle allocation

2017-02-01 Thread Marc Zyngier
On Wed, Feb 01 2017 at 4:44:19 pm GMT, André Przywara wrote: Hi Andre, > Hi Marc, Will, > > On 09/12/16 12:03, Marc Zyngier wrote: >> On 04/11/16 17:31, Andre Przywara wrote: >>> Allocating an FDT phandle (a unique identifier) using a static >>> variable in a static

Re: [PATCH v8 01/16] FDT: introduce global phandle allocation

2017-02-01 Thread André Przywara
Hi Marc, Will, On 09/12/16 12:03, Marc Zyngier wrote: > On 04/11/16 17:31, Andre Przywara wrote: >> Allocating an FDT phandle (a unique identifier) using a static >> variable in a static inline function defined in a header file works >> only if all users are in the same source file. So trying to

Re: [PATCH v8 01/16] FDT: introduce global phandle allocation

2016-12-20 Thread Andrew Jones
On Mon, Dec 19, 2016 at 06:43:29PM +, Andre Przywara wrote: > Well, yes. The problem is that AFAIK you cannot initialize an array > easily with all the values getting set to something other than zero. u32 phandles[PHANDLES_MAX] = { [0 ... PHANDLES_MAX-1] = FDT_INVALID_PHANDLE }; (Unrelated,

Re: [PATCH v8 01/16] FDT: introduce global phandle allocation

2016-12-19 Thread Andre Przywara
Hi Marc, On 09/12/16 12:03, Marc Zyngier wrote: > On 04/11/16 17:31, Andre Przywara wrote: >> Allocating an FDT phandle (a unique identifier) using a static >> variable in a static inline function defined in a header file works >> only if all users are in the same source file. So trying to

Re: [PATCH v8 01/16] FDT: introduce global phandle allocation

2016-12-19 Thread Andre Przywara
Hi Marc, On 09/12/16 11:55, Marc Zyngier wrote: > Hi Andre, > > On 04/11/16 17:31, Andre Przywara wrote: >> Allocating an FDT phandle (a unique identifier) using a static >> variable in a static inline function defined in a header file works >> only if all users are in the same source file. So

Re: [PATCH v8 01/16] FDT: introduce global phandle allocation

2016-12-09 Thread Marc Zyngier
On 04/11/16 17:31, Andre Przywara wrote: > Allocating an FDT phandle (a unique identifier) using a static > variable in a static inline function defined in a header file works > only if all users are in the same source file. So trying to allocate > a handle from two different compilation units

[PATCH v8 01/16] FDT: introduce global phandle allocation

2016-11-04 Thread Andre Przywara
Allocating an FDT phandle (a unique identifier) using a static variable in a static inline function defined in a header file works only if all users are in the same source file. So trying to allocate a handle from two different compilation units fails. Introduce global phandle allocation and