mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] btrfs: Fix backref.c selftest compilation warning
@ 2020-04-11 15:49 Tang Bin
  2020-04-12  0:52 ` Qu Wenruo
  2020-04-14 15:19 ` David Sterba
  0 siblings, 2 replies; 7+ messages in thread
From: Tang Bin @ 2020-04-11 15:49 UTC (permalink / raw)
  To: clm, josef, dsterba; +Cc: linux-btrfs, linux-kernel, Tang Bin, Shengju Zhang

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@cmss.chinamobile.com>
Signed-off-by: Shengju Zhang <zhangshengju@cmss.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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-15  1:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-11 15:49 [PATCH] btrfs: Fix backref.c selftest compilation warning Tang Bin
2020-04-12  0:52 ` Qu Wenruo
2020-04-12  3:21   ` Tang Bin
2020-04-12  5:04     ` Qu Wenruo
2020-04-14 15:19 ` David Sterba
2020-04-14 15:22   ` David Sterba
2020-04-15  1:22     ` Tang Bin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®