Re: [PATCH] tee: optee: Initialize some structs using memset instead of braces

2019-02-20 Thread Arnd Bergmann
On Tue, Feb 19, 2019 at 10:50 AM Sumit Garg wrote: > On Tue, 19 Feb 2019 at 14:45, Nathan Chancellor > wrote: > > > > Fixes: c3fa24af9244 ("tee: optee: add TEE bus device enumeration support") > > Link: https://github.com/ClangBuiltLinux/linux/issues/370 > > Signed-off-by: Nathan Chancellor >

Re: [PATCH] tee: optee: Initialize some structs using memset instead of braces

2019-02-19 Thread Sumit Garg
On Tue, 19 Feb 2019 at 14:45, Nathan Chancellor wrote: > > Clang warns: > > drivers/tee/optee/device.c:39:31: warning: suggest braces around > initialization of subobject [-Wmissing-braces] > struct tee_param param[4] = {0}; > ^ >

[PATCH] tee: optee: Initialize some structs using memset instead of braces

2019-02-19 Thread Nathan Chancellor
Clang warns: drivers/tee/optee/device.c:39:31: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct tee_param param[4] = {0}; ^ {} drivers/tee/optee/device.c:92:48: warning: suggest br