Skip to content

Commit 7a1c4f2

Browse files
Tang Bingregkh
authored andcommitted
binderfs: Fix binderfs.c selftest compilation warning
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>
1 parent 15665c0 commit 7a1c4f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/android/binderfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ static int binderfs_fill_super(struct super_block *sb, struct fs_context *fc)
650650
struct binderfs_info *info;
651651
struct binderfs_mount_opts *ctx = fc->fs_private;
652652
struct inode *inode = NULL;
653-
struct binderfs_device device_info = { 0 };
653+
struct binderfs_device device_info = {};
654654
const char *name;
655655
size_t len;
656656

0 commit comments

Comments
 (0)