binderfs: Fix binderfs.c selftest compilation warning
authorTang Bin <tangbin@cmss.chinamobile.com>
Sat, 11 Apr 2020 14:51:51 +0000 (22:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 14:48:00 +0000 (16:48 +0200)
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]

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20200411145151.5576-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binderfs.c

index 9ecad74183a3ca1e81b9cae586ece3c069bfef5a..78528e1b7ec14543b89f2241536c95f495e8a8af 100644 (file)
@@ -650,7 +650,7 @@ static int binderfs_fill_super(struct super_block *sb, struct fs_context *fc)
        struct binderfs_info *info;
        struct binderfs_mount_opts *ctx = fc->fs_private;
        struct inode *inode = NULL;
-       struct binderfs_device device_info = { 0 };
+       struct binderfs_device device_info = {};
        const char *name;
        size_t len;