diff options
| author | Christoph Hellwig <hch@lst.de> | 2019-02-04 06:31:04 -0900 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-02-04 06:59:50 -0900 |
| commit | 77000bc43da17d5d6bc4ebfaf44d52d43bb69492 (patch) | |
| tree | 928d19f948196f56d29b8e7b07960839b6ed8705 | |
| parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) | |
| download | linux-stable-77000bc43da17d5d6bc4ebfaf44d52d43bb69492.tar.gz linux-stable-77000bc43da17d5d6bc4ebfaf44d52d43bb69492.tar.bz2 linux-stable-77000bc43da17d5d6bc4ebfaf44d52d43bb69492.tar.xz linux-stable-77000bc43da17d5d6bc4ebfaf44d52d43bb69492.zip | |
uio: remove the unused iov_for_each macro
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | .clang-format | 1 | ||||
| -rw-r--r-- | include/linux/uio.h | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/.clang-format b/.clang-format index e6080f5834a3..c144d9c24d5d 100644 --- a/.clang-format +++ b/.clang-format | |||
| @@ -259,7 +259,6 @@ ForEachMacros: | |||
| 259 | - 'idr_for_each_entry_ul' | 259 | - 'idr_for_each_entry_ul' |
| 260 | - 'inet_bind_bucket_for_each' | 260 | - 'inet_bind_bucket_for_each' |
| 261 | - 'inet_lhash2_for_each_icsk_rcu' | 261 | - 'inet_lhash2_for_each_icsk_rcu' |
| 262 | - 'iov_for_each' | ||
| 263 | - 'key_for_each' | 262 | - 'key_for_each' |
| 264 | - 'key_for_each_safe' | 263 | - 'key_for_each_safe' |
| 265 | - 'klp_for_each_func' | 264 | - 'klp_for_each_func' |
diff --git a/include/linux/uio.h b/include/linux/uio.h index ecf584f6b82d..87477e1640f9 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h | |||
| @@ -110,14 +110,6 @@ static inline struct iovec iov_iter_iovec(const struct iov_iter *iter) | |||
| 110 | }; | 110 | }; |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | #define iov_for_each(iov, iter, start) \ | ||
| 114 | if (iov_iter_type(start) == ITER_IOVEC || \ | ||
| 115 | iov_iter_type(start) == ITER_KVEC) \ | ||
| 116 | for (iter = (start); \ | ||
| 117 | (iter).count && \ | ||
| 118 | ((iov = iov_iter_iovec(&(iter))), 1); \ | ||
| 119 | iov_iter_advance(&(iter), (iov).iov_len)) | ||
| 120 | |||
| 121 | size_t iov_iter_copy_from_user_atomic(struct page *page, | 113 | size_t iov_iter_copy_from_user_atomic(struct page *page, |
| 122 | struct iov_iter *i, unsigned long offset, size_t bytes); | 114 | struct iov_iter *i, unsigned long offset, size_t bytes); |
| 123 | void iov_iter_advance(struct iov_iter *i, size_t bytes); | 115 | void iov_iter_advance(struct iov_iter *i, size_t bytes); |
