From 2a53d6a12a27b757d1d8867b2e02369fbc046cab Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Mon, 26 Jun 2017 13:46:45 +0300 Subject: [PATCH] OpenZFS 8426 - mark immutable buffer arguments as such in abd.h Authored by: Andriy Gapon Reviewed by: Matt Ahrens Approved by: Robert Mustacchi Reviewed-by: Brian Behlendorf Reviewed-by: George Melikov Ported-by: Giuseppe Di Natale OpenZFS-issue: https://www.illumos.org/issues/8426 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/37359a6 Closes #6287 --- include/sys/abd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sys/abd.h b/include/sys/abd.h index d2db7e1996..59b6794913 100644 --- a/include/sys/abd.h +++ b/include/sys/abd.h @@ -142,7 +142,7 @@ abd_copy(abd_t *dabd, abd_t *sabd, size_t size) } static 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); } @@ -154,7 +154,7 @@ abd_copy_to_buf(void* buf, abd_t *abd, size_t size) } static 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)); }