From patchwork Thu Feb 1 10:23:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 10195241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A14E8601A0 for ; Thu, 1 Feb 2018 10:23:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DFA1289FD for ; Thu, 1 Feb 2018 10:23:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92AA028A43; Thu, 1 Feb 2018 10:23:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10432289FD for ; Thu, 1 Feb 2018 10:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868AbeBAKXH (ORCPT ); Thu, 1 Feb 2018 05:23:07 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:60162 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751749AbeBAKXG (ORCPT ); Thu, 1 Feb 2018 05:23:06 -0500 Received: from ayla.of.borg ([84.194.104.20]) by albert.telenet-ops.be with bizsmtp id 5NP51x00v0SRDqC06NP5y1; Thu, 01 Feb 2018 11:23:05 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1ehC1J-0007hZ-CZ; Thu, 01 Feb 2018 11:23:05 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ehC1J-0001Cn-BS; Thu, 01 Feb 2018 11:23:05 +0100 From: Geert Uytterhoeven To: "Darrick J . Wong" Cc: Arnd Bergmann , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] xfs: Add missing braces around xfs_scrub_agfl_info initializer Date: Thu, 1 Feb 2018 11:23:04 +0100 Message-Id: <1517480584-4588-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With gcc-4.1.2: fs/xfs/scrub/agheader.c: In function ‘xfs_scrub_agfl’: fs/xfs/scrub/agheader.c:770: warning: missing braces around initializer fs/xfs/scrub/agheader.c:770: warning: (near initialization for ‘sai.oinfo’) The first member of struct xfs_scrub_agfl_info is no longer an integral type, but a struct. Add the missing curly braces to fix this. Fixes: d852657ccfc0e455 ("xfs: cross-reference reverse-mapping btree") Signed-off-by: Geert Uytterhoeven --- fs/xfs/scrub/agheader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/scrub/agheader.c b/fs/xfs/scrub/agheader.c index fd975524f4603387..9bcfdb0d1da379f5 100644 --- a/fs/xfs/scrub/agheader.c +++ b/fs/xfs/scrub/agheader.c @@ -767,7 +767,7 @@ int xfs_scrub_agfl( struct xfs_scrub_context *sc) { - struct xfs_scrub_agfl_info sai = { 0 }; + struct xfs_scrub_agfl_info sai = { { 0 } }; struct xfs_agf *agf; xfs_agnumber_t agno; unsigned int agflcount;