[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200411154915.9408-1-tangbin@cmss.chinamobile.com>
Date: Sat, 11 Apr 2020 23:49:15 +0800
From: Tang Bin <tangbin@...s.chinamobile.com>
To: clm@...com, josef@...icpanda.com, dsterba@...e.com
Cc: linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org,
Tang Bin <tangbin@...s.chinamobile.com>,
Shengju Zhang <zhangshengju@...s.chinamobile.com>
Subject: [PATCH] btrfs: Fix backref.c selftest compilation warning
Fix missing braces compilation warning in the ARM
compiler environment:
fs/btrfs/backref.c: In function ‘is_shared_data_backref’:
fs/btrfs/backref.c:394:9: warning: missing braces around initializer [-Wmissing-braces]
struct prelim_ref target = {0};
fs/btrfs/backref.c:394:9: warning: (near initialization for ‘target.rbnode’) [-Wmissing-braces]
Signed-off-by: Tang Bin <tangbin@...s.chinamobile.com>
Signed-off-by: Shengju Zhang <zhangshengju@...s.chinamobile.com>
---
fs/btrfs/backref.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index 9c380e7..0cc0257 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -391,7 +391,7 @@ static int is_shared_data_backref(struct preftrees *preftrees, u64 bytenr)
struct rb_node **p = &preftrees->direct.root.rb_root.rb_node;
struct rb_node *parent = NULL;
struct prelim_ref *ref = NULL;
- struct prelim_ref target = {0};
+ struct prelim_ref target = {};
int result;
target.parent = bytenr;
--
2.7.4
Powered by blists - more mailing lists