Re: [PATCH] xen/iommu: smmu: Rework how the SMMU version is detected

2020-12-24 Thread Julien Grall
On Thu, 24 Dec 2020 at 17:39, Andrew Cooper wrote: > > On 24/12/2020 17:10, Julien Grall wrote: > > > > > > On 24/12/2020 17:00, Andrew Cooper wrote: > >> On 24/12/2020 16:49, Julien Grall wrote: > >>> From: Julien Grall > >>> > >>> Clang 11 will throw the following error: > >>> > >>> smmu.c:2284

Re: [PATCH] xen/iommu: smmu: Rework how the SMMU version is detected

2020-12-24 Thread Andrew Cooper
On 24/12/2020 17:10, Julien Grall wrote: > > > On 24/12/2020 17:00, Andrew Cooper wrote: >> On 24/12/2020 16:49, Julien Grall wrote: >>> From: Julien Grall >>> >>> Clang 11 will throw the following error: >>> >>> smmu.c:2284:18: error: cast to smaller integer type 'enum >>> arm_smmu_arch_version'

Re: [PATCH] xen/iommu: smmu: Rework how the SMMU version is detected

2020-12-24 Thread Julien Grall
On 24/12/2020 17:00, Andrew Cooper wrote: On 24/12/2020 16:49, Julien Grall wrote: From: Julien Grall Clang 11 will throw the following error: smmu.c:2284:18: error: cast to smaller integer type 'enum arm_smmu_arch_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Re: [PATCH] xen/iommu: smmu: Rework how the SMMU version is detected

2020-12-24 Thread Andrew Cooper
On 24/12/2020 16:49, Julien Grall wrote: > From: Julien Grall > > Clang 11 will throw the following error: > > smmu.c:2284:18: error: cast to smaller integer type 'enum > arm_smmu_arch_version' from 'const void *' > [-Werror,-Wvoid-pointer-to-enum-cast] > smmu->version = (enum arm_smmu_a

[PATCH] xen/iommu: smmu: Rework how the SMMU version is detected

2020-12-24 Thread Julien Grall
From: Julien Grall Clang 11 will throw the following error: smmu.c:2284:18: error: cast to smaller integer type 'enum arm_smmu_arch_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] smmu->version = (enum arm_smmu_arch_version)of_id->data; ^~~