Merge branch 'gcc-branch' into refs/top-bases/zfs-branch

This commit is contained in:
Brian Behlendorf 2010-08-12 21:28:00 -07:00
commit 13eca9436e
2 changed files with 3 additions and 1 deletions

View File

@ -1067,6 +1067,7 @@ ztest_pattern_set(void *buf, uint64_t size, uint64_t value)
*ip++ = value; *ip++ = value;
} }
#ifndef NDEBUG
static boolean_t static boolean_t
ztest_pattern_match(void *buf, uint64_t size, uint64_t value) ztest_pattern_match(void *buf, uint64_t size, uint64_t value)
{ {
@ -1079,6 +1080,7 @@ ztest_pattern_match(void *buf, uint64_t size, uint64_t value)
return (diff == 0); return (diff == 0);
} }
#endif
static void static void
ztest_bt_generate(ztest_block_tag_t *bt, objset_t *os, uint64_t object, ztest_bt_generate(ztest_block_tag_t *bt, objset_t *os, uint64_t object,

View File

@ -143,7 +143,7 @@ vdev_file_io_start(zio_t *zio)
{ {
vdev_t *vd = zio->io_vd; vdev_t *vd = zio->io_vd;
vdev_file_t *vf = vd->vdev_tsd; vdev_file_t *vf = vd->vdev_tsd;
ssize_t resid; ssize_t resid = 0;
if (zio->io_type == ZIO_TYPE_IOCTL) { if (zio->io_type == ZIO_TYPE_IOCTL) {
/* XXPOLICY */ /* XXPOLICY */