xfstests: fix build errors and warnings
authorDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 06:34:42 +0000 (16:34 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 06:34:42 +0000 (16:34 +1000)
commit8c3016bc8446f2c3079d2665960d0a2ae980713c
treeb91167b9d7f0b59618466a946263808e405e3d7b
parent6834333589af5f3080eca906f0b2e54df8d02285
xfstests: fix build errors and warnings

After upgrading userspace on test machines to xfsprogs-4.2.0-rc1,
lots of build warnings and failures are exposed from implicit
includes that no longer exist. Hence these need fixing to allow
fstests to build correctly.

gcc also seems to have grown new stupidities around uninitialised
variables, so fix them while touching the same files.

Signed-off-by: Dave Chinner <david@fromorbit.com>
12 files changed:
dmapi/src/common/cmd/write_invis.c
dmapi/src/common/lib/util.c
dmapi/src/suite1/cmd/get_dirattrs.c
dmapi/src/suite1/cmd/probe_punch_xfsctl_hole.c
dmapi/src/suite2/src/test_dmattr.c
ltp/doio.c
src/bulkstat_unlink_test.c
src/bulkstat_unlink_test_modified.c
src/iopat.c
src/trunc.c
src/unwritten_sync.c
src/xfsctl.c