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

2019-02-20 Thread Arnd Bergmann
On Tue, Feb 19, 2019 at 6:11 AM Sumit Garg wrote: > On Tue, 19 Feb 2019 at 08:52, Nathan Chancellor > wrote: > > > > Fixes: 5fe8b1cc6a03 ("hwrng: add OP-TEE based rng driver") > > Link: https://github.com/ClangBuiltLinux/linux/issues/369 > > Signed-off-by: Nathan Chancellor > > Reviewed-by: Sum

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

2019-02-18 Thread Sumit Garg
On Tue, 19 Feb 2019 at 08:52, Nathan Chancellor wrote: > > Clang warns: > > drivers/char/hw_random/optee-rng.c:80:31: warning: suggest braces around > initialization of subobject [-Wmissing-braces] > struct tee_param param[4] = {0}; > ^ >

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

2019-02-18 Thread Nathan Chancellor
Clang warns: drivers/char/hw_random/optee-rng.c:80:31: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct tee_param param[4] = {0}; ^ {} drivers/char/hw_random/optee-rng.c:177:31: wa