Re: [PATCH] binderfs: Fix binderfs.c selftest compilation warning

From: Greg KH
Date: Mon Apr 13 2020 - 03:34:16 EST


On Sat, Apr 11, 2020 at 10:51:51PM +0800, Tang Bin wrote:
> Fix missing braces compilation warning in the ARM
> compiler environment:
> drivers/android/binderfs.c: In function 'binderfs_fill_super':
> drivers/android/binderfs.c:650:9: warning: missing braces around initializer [-Wmissing-braces]
> struct binderfs_device device_info = { 0 };
> drivers/android/binderfs.c:650:9: warning: (near initialization for âdevice_info.nameâ) [-Wmissing-braces]

What compiler and version is giving this warning? It's odd we have not
seen this yet...

thanks,

greg k-h