Skip to contentSkip to conversation

lib/iov_iter: Remove import_iovec() and compat_import_iovec()

RFC PATCH In review David Laight 1 participant 1 message Mar 31, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 12/12 lib/iov_iter: Remove import_iovec() and compat_import_iovec()

All the callers have been changed to use iovec_import() and compat_iovec_import().

---
 include/linux/uio.h |  8 -------
 lib/iov_iter.c      | 61 -----------------------------------------------------
 2 files changed, 69 deletions(-)
include/linux/uio.h +0 -8
index 1e7a3f1..a2762e1 100644
@@ -271,20 +271,12 @@ struct iovec_cache {
 	struct iovec  iov[UIO_FASTIOV];
 };
 
-ssize_t import_iovec(int type, const struct iovec __user * uvector,
-		 unsigned nr_segs, unsigned fast_segs,
-		 struct iovec **iov, struct iov_iter *i);
-
 struct iovec *iovec_import(int type, const struct iovec __user * uvector,
 		unsigned int nr_segs, struct iovec_cache *cache,
 		struct iov_iter *i);
 
 #ifdef CONFIG_COMPAT
 struct compat_iovec;
-ssize_t compat_import_iovec(int type, const struct compat_iovec __user * uvector,
-		 unsigned nr_segs, unsigned fast_segs,
-		 struct iovec **iov, struct iov_iter *i);
-
 struct iovec *compat_iovec_import(int type,
 		const struct compat_iovec __user * uvector,
 		unsigned int nr_segs, struct iovec_cache *cache,
lib/iov_iter.c +0 -61

73 lines not on this page · raw message

Signature · 5 lines
1.8.1.2

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)