Skip to content

Commit

Permalink
constify iov_iter_count() and iter_is_iovec()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Oct 10, 2016
1 parent c3a6902 commit b57332b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/uio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit b57332b

Please sign in to comment.