Re: [Xen-devel] [PATCH v3 02/39] ARM: GIC: add GIC_INVALID to enum gic_version

2018-03-26 Thread Stefano Stabellini
On Wed, 21 Mar 2018, Andre Przywara wrote: > The enum gic_version at the moment just contains GIC_V2 and GIC_V3, > where GIC_V2 happens to map to 0. So without having initialised a > variable of that type, we will read back GIC_V2 (when allocated with zeroing > the memory). > To prevent ambiguities

Re: [Xen-devel] [PATCH v3 02/39] ARM: GIC: add GIC_INVALID to enum gic_version

2018-03-21 Thread Julien Grall
Hi Andre, On 03/21/2018 04:31 PM, Andre Przywara wrote: The enum gic_version at the moment just contains GIC_V2 and GIC_V3, where GIC_V2 happens to map to 0. So without having initialised a variable of that type, we will read back GIC_V2 (when allocated with zeroing the memory). To prevent ambig

[Xen-devel] [PATCH v3 02/39] ARM: GIC: add GIC_INVALID to enum gic_version

2018-03-21 Thread Andre Przywara
The enum gic_version at the moment just contains GIC_V2 and GIC_V3, where GIC_V2 happens to map to 0. So without having initialised a variable of that type, we will read back GIC_V2 (when allocated with zeroing the memory). To prevent ambiguities and to give an explicitly uninitialised state, add a