summaryrefslogtreecommitdiff
path: root/include/linux/uio.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-10-10 20:57:37 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2016-10-10 20:57:37 +0300
commitb57332b4105abf1d518d93886e547ee2f98cd414 (patch)
treeb079d0432c23120118ec97b4f8518dfd0d4b744e /include/linux/uio.h
parentc3a690240423fc4eb8a0c3c7df025d13eadf140b (diff)
downloadlinux-b57332b4105abf1d518d93886e547ee2f98cd414.tar.xz
constify iov_iter_count() and iter_is_iovec()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/uio.h')
-rw-r--r--include/linux/uio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/uio.h b/include/linux/uio.h
index b5ebe6dca404..544c03552b99 100644
--- a/include/linux/uio.h
+++ b/include/linux/uio.h
@@ -110,12 +110,12 @@ int iov_iter_npages(const struct iov_iter *i, int maxpages);
const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags);
-static inline size_t iov_iter_count(struct iov_iter *i)
+static inline size_t iov_iter_count(const struct iov_iter *i)
{
return i->count;
}
-static inline bool iter_is_iovec(struct iov_iter *i)
+static inline bool iter_is_iovec(const struct iov_iter *i)
{
return !(i->type & (ITER_BVEC | ITER_KVEC | ITER_PIPE));
}