lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1517480584-4588-1-git-send-email-geert@linux-m68k.org>
Date:   Thu,  1 Feb 2018 11:23:04 +0100
From:   Geert Uytterhoeven <geert@...ux-m68k.org>
To:     "Darrick J . Wong" <darrick.wong@...cle.com>
Cc:     Arnd Bergmann <arnd@...db.de>, linux-xfs@...r.kernel.org,
        linux-kernel@...r.kernel.org,
        Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: [PATCH] xfs: Add missing braces around xfs_scrub_agfl_info initializer

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 <geert@...ux-m68k.org>
---
 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;
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ