Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1665720ybb; Sat, 11 Apr 2020 08:49:51 -0700 (PDT) X-Google-Smtp-Source: APiQypJk9o81n/SWKdvpFiEzXsPK0QNQVbvySoJTaeI/Xr2TSf4Dz1jSDthoRE3Ohv2WZqTzQEbB X-Received: by 2002:ac8:888:: with SMTP id v8mr4045965qth.194.1586620191556; Sat, 11 Apr 2020 08:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586620191; cv=none; d=google.com; s=arc-20160816; b=n8v32P35nygbPGDEOVWwmFy7ToRb2s88XaCOr2mgcWryn6mXTE95w8Ry1WqVX5fx/K 3fft2nq8yeNsjuHTWtZg29ZnMozs6ySaDncwgmap7JAzFN3KXfrdrUIxEHzysGxyh+l2 owTiJWRo5wAg2iXrb/yBrvrQ4PZUpXPfj0F7LjyW454tV95MN3wb/+gzUf+4+0PcC1cO 7l9zBW4nk/3ERbSsFdNQnIk16+USvFwbLeFdtYHbl3pGNue49C5GL5KeyG75Thep/2gX G2uUJRCX1NiRbQmN0Xz2pULpVhUwzjy4NxedzDmlMGMwiOBP9NBjxh6a2aC464HRn9UB ao1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+KwZePHxyt5jmTWO+Y3WuwoF4ofHBsRJbvZsqJlooW4=; b=hCqvdwX/G6AynDSzIKHbTnq6n/UONXqglwbcaqZ1hINC2bCob9i1NeU+anAOVzIaeA SPFWRLMrRW+Vmg3kAGEhOOLM0mLG911t7hV1EJJc/X9Y6c5yRzSl8P5SjCOxQGH43/r9 jxJxKoym/kTA1Z9rQa7eZvyT9rAx5/MH1aR72oX2534DjoYJOIkHvTDN6uhNoTzTpytD 7i9kdv71P/kcXW4+89VU4rn4Z2ZhRAKNDBVg4TBLQNUnD+vmXCJ5BUylF2054dBV3Czq tHHzW7X92dnoW1zzfVMvy440gxpsNmUQ5jNwlfZBs03k4DcsxZAi+G+ZfhKXq8JtAg2j Pfjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r37si2988877qtk.10.2020.04.11.08.49.35; Sat, 11 Apr 2020 08:49:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726167AbgDKPsD (ORCPT + 99 others); Sat, 11 Apr 2020 11:48:03 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:7575 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbgDKPsD (ORCPT ); Sat, 11 Apr 2020 11:48:03 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.5]) by rmmx-syy-dmz-app08-12008 (RichMail) with SMTP id 2ee85e91e69f3a8-16554; Sat, 11 Apr 2020 23:47:43 +0800 (CST) X-RM-TRANSID: 2ee85e91e69f3a8-16554 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.104.145.126]) by rmsmtp-syy-appsvr03-12003 (RichMail) with SMTP id 2ee35e91e69cf7b-7c289; Sat, 11 Apr 2020 23:47:42 +0800 (CST) X-RM-TRANSID: 2ee35e91e69cf7b-7c289 From: Tang Bin To: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Tang Bin , Shengju Zhang Subject: [PATCH] btrfs: Fix backref.c selftest compilation warning Date: Sat, 11 Apr 2020 23:49:15 +0800 Message-Id: <20200411154915.9408-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Shengju Zhang --- 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