diff --git a/include/linux/uio.h b/include/linux/uio.h index b5ebe6dca404c4f2d58bf079543ab3763c659ac9..544c03552b99685c9df64537a8790071fb2c853b 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)); }