Skip to contentSkip to conversation

Patch "constify iov_iter_count() and iter_is_iovec()" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Dec 9, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

constify iov_iter_count() and iter_is_iovec()

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
constify-iov_iter_count-and-iter_is_iovec.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From b57332b4105abf1d518d93886e547ee2f98cd414 Mon Sep 17 00:00:00 2001

From: Al Viro <[email protected]>
Date: Mon, 10 Oct 2016 13:57:37 -0400
Subject: constify iov_iter_count() and iter_is_iovec()

From: Al Viro <[email protected]>

commit b57332b4105abf1d518d93886e547ee2f98cd414 upstream.

[stable note, need this to prevent build warning in commit a0ac402cfcdc904f9772e1762b3fda112dcc56a0]

---
 include/linux/uio.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/uio.h +2 -2
@@ -101,12 +101,12 @@ int iov_iter_npages(const struct iov_ite
 
 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));
 }

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/constify-iov_iter_count-and-iter_is_iovec.patch