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

From: Tang Bin
Date: Mon Apr 13 2020 - 03:50:45 EST


Hi gregï

On 2020/4/12 15:46, Greg KH wrote:
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...
My environment:

 PC : Ubuntu 16.04

 Hardware : I.MX6ULL

 Tool Chain : arm-linux-gnueabihf-gcc (Linaro GCC 4.9-2017.01) 4.9.4



Thank you for your patience.

Tang Bin