Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2017 11:07:34 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322234 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201708081107.v78B7Yvm039161@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Aug  8 11:07:34 2017
New Revision: 322234
URL: https://svnweb.freebsd.org/changeset/base/322234

Log:
  zfs: no need for __DECONST after abd constification in r322233
  
  Note that vdev_label_write_pad2() is FreeBSD specific.
  
  MFC after:	2 weeks
  X-MFC after:	r322233

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c	Tue Aug  8 10:59:18 2017	(r322233)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c	Tue Aug  8 11:07:34 2017	(r322234)
@@ -899,7 +899,7 @@ vdev_label_write_pad2(vdev_t *vd, const char *buf, siz
 
 	pad2 = abd_alloc_for_io(VDEV_PAD_SIZE, B_TRUE);
 	abd_zero(pad2, VDEV_PAD_SIZE);
-	abd_copy_from_buf(pad2, __DECONST(void *, buf), size);
+	abd_copy_from_buf(pad2, buf, size);
 
 retry:
 	zio = zio_root(spa, NULL, NULL, flags);



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