Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2013 07:05:34 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Cc:        Kirk McKusick <mckusick@FreeBSD.org>
Subject:   [PATCH] Fix sbin/fsdb/fsdbutil.c for r247212
Message-ID:  <20130224150534.GA2785@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--U+BazGySraz5kW0T
Content-Type: multipart/mixed; boundary="/9DWx/yDrRhgMJTb"
Content-Disposition: inline


--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Whine was:
=2E..
CC=3D'clang' mkdep -f .depend -a    -I/usr/src/sbin/fsdb/../fsck_ffs -std=
=3Dgnu99  =20
/usr/src/sbin/fsdb/fsdb.c /usr/src/sbin/fsdb/fsdbutil.c /usr/src/sbin/fsdb/=
=2E./fs
ck_ffs/dir.c /usr/src/sbin/fsdb/../fsck_ffs/ea.c /usr/src/sbin/fsdb/../fsck=
_ffs/
fsutil.c /usr/src/sbin/fsdb/../fsck_ffs/inode.c /usr/src/sbin/fsdb/../fsck_=
ffs/p
ass1.c /usr/src/sbin/fsdb/../fsck_ffs/pass1b.c /usr/src/sbin/fsdb/../fsck_f=
fs/pa
ss2.c /usr/src/sbin/fsdb/../fsck_ffs/pass3.c /usr/src/sbin/fsdb/../fsck_ffs=
/pass
4.c /usr/src/sbin/fsdb/../fsck_ffs/pass5.c /usr/src/sbin/fsdb/../fsck_ffs/s=
etup.
c /usr/src/sbin/fsdb/../fsck_ffs/utilities.c /usr/src/sbin/fsdb/../../sys/u=
fs/ff
s/ffs_subr.c /usr/src/sbin/fsdb/../../sys/ufs/ffs/ffs_tables.c
/usr/src/sbin/fsdb/fsdbutil.c:242:14: error: too few arguments provided to =
funct
ion-like macro invocation
        initbarea(bp);
                    ^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1
1 error
*** [depend] Error code 2
1 error
*** [sbin.depend__D] Error code 2

Simple patch attached; world is still building, but at least it got
through the "make dependencies" phase this time.

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--/9DWx/yDrRhgMJTb
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="fsdbutil.c.patch"
Content-Transfer-Encoding: quoted-printable

Index: sbin/fsdb/fsdbutil.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- sbin/fsdb/fsdbutil.c	(revision 247218)
+++ sbin/fsdb/fsdbutil.c	(working copy)
@@ -239,7 +239,7 @@
 	/* for the final indirect level, don't use the cache */
 	bp =3D &buf;
 	bp->b_un.b_buf =3D bufp;
-	initbarea(bp);
+	initbarea(bp, BT_UNKNOWN);
=20
 	getblk(bp, blk, sblock.fs_bsize);
     } else

--/9DWx/yDrRhgMJTb--

--U+BazGySraz5kW0T
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlEqLDoACgkQmprOCmdXAD0QigCfXulJyAZL57b0qMbbmmSjoPdK
9YIAn2gTC1iNDUb0nhJMhhY2UnhaC+/c
=P0o+
-----END PGP SIGNATURE-----

--U+BazGySraz5kW0T--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130224150534.GA2785>