svn commit: r323749 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys
Andriy Gapon
avg at FreeBSD.org
Tue Sep 19 08:54:43 UTC 2017
Author: avg
Date: Tue Sep 19 08:54:41 2017
New Revision: 323749
URL: https://svnweb.freebsd.org/changeset/base/323749
Log:
MFC r322233: MFV r322232: 8426 mark immutable buffer arguments as such in abd.h
illumos/illumos-gate at 9b195260e22529ac0e2580faaf89402420589c1c
https://github.com/illumos/illumos-gate/commit/9b195260e22529ac0e2580faaf89402420589c1c
https://www.illumos.org/issues/8426
abd_copy_from_buf and abd_cmp_buf do not modify their void *buf arguments, so
qualify them with const.
abd_copy_from_buf_off and abd_cmp_buf_off already had that type for the
corresponding arguments.
Reviewed by: Matt Ahrens <mahrens at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>
Author: Andriy Gapon <avg at FreeBSD.org>
Modified:
stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/abd.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/abd.h
==============================================================================
--- stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/abd.h Tue Sep 19 08:53:13 2017 (r323748)
+++ stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/abd.h Tue Sep 19 08:54:41 2017 (r323749)
@@ -117,7 +117,7 @@ abd_copy(abd_t *dabd, abd_t *sabd, size_t size)
}
inline void
-abd_copy_from_buf(abd_t *abd, void *buf, size_t size)
+abd_copy_from_buf(abd_t *abd, const void *buf, size_t size)
{
abd_copy_from_buf_off(abd, buf, 0, size);
}
@@ -129,7 +129,7 @@ abd_copy_to_buf(void* buf, abd_t *abd, size_t size)
}
inline int
-abd_cmp_buf(abd_t *abd, void *buf, size_t size)
+abd_cmp_buf(abd_t *abd, const void *buf, size_t size)
{
return (abd_cmp_buf_off(abd, buf, 0, size));
}
More information about the svn-src-stable
mailing list