Re: [RFC][PATCH 2/5] libdrm: amdgpu: Initialize unions with memset rather than "= {0}"

2019-04-23 Thread Christian König
Am 22.04.19 um 20:35 schrieb John Stultz: On Mon, Apr 22, 2019 at 7:59 AM Alex Deucher wrote: On Sat, Apr 20, 2019 at 12:25 AM John Stultz wrote: Clang complains when initializing unions using "= {0}" so instead use memset. Cc: Emil Velikov Cc: Sean Paul Cc: Alistair Strachan Cc: Marissa

Re: [RFC][PATCH 2/5] libdrm: amdgpu: Initialize unions with memset rather than "= {0}"

2019-04-23 Thread Emil Velikov
On Sat, 20 Apr 2019 at 05:25, John Stultz wrote: > > Clang complains when initializing unions using "= {0}" > so instead use memset. > > Cc: Emil Velikov > Cc: Sean Paul > Cc: Alistair Strachan > Cc: Marissa Wall > Signed-off-by: John Stultz Reviewed-by: Emil Velikov -Emil

Re: [RFC][PATCH 2/5] libdrm: amdgpu: Initialize unions with memset rather than "= {0}"

2019-04-22 Thread John Stultz
On Mon, Apr 22, 2019 at 7:59 AM Alex Deucher wrote: > On Sat, Apr 20, 2019 at 12:25 AM John Stultz wrote: > > > > Clang complains when initializing unions using "= {0}" > > so instead use memset. > > > > Cc: Emil Velikov > > Cc: Sean Paul > > Cc: Alistair Strachan > > Cc: Marissa Wall > >

Re: [RFC][PATCH 2/5] libdrm: amdgpu: Initialize unions with memset rather than "= {0}"

2019-04-22 Thread Alex Deucher
On Sat, Apr 20, 2019 at 12:25 AM John Stultz wrote: > > Clang complains when initializing unions using "= {0}" > so instead use memset. > > Cc: Emil Velikov > Cc: Sean Paul > Cc: Alistair Strachan > Cc: Marissa Wall > Signed-off-by: John Stultz Reviewed-by: Alex Deucher Do you have commit

[RFC][PATCH 2/5] libdrm: amdgpu: Initialize unions with memset rather than "= {0}"

2019-04-19 Thread John Stultz
Clang complains when initializing unions using "= {0}" so instead use memset. Cc: Emil Velikov Cc: Sean Paul Cc: Alistair Strachan Cc: Marissa Wall Signed-off-by: John Stultz --- amdgpu/amdgpu_cs.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git