* [PATCH] uio: remove the unused iov_for_each macro
@ 2019-02-04 15:31 Christoph Hellwig
2019-02-04 15:57 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2019-02-04 15:31 UTC (permalink / raw)
To: viro; +Cc: linux-fsdevel
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
.clang-format | 1 -
include/linux/uio.h | 8 --------
2 files changed, 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:
- 'idr_for_each_entry_ul'
- 'inet_bind_bucket_for_each'
- 'inet_lhash2_for_each_icsk_rcu'
- - 'iov_for_each'
- 'key_for_each'
- 'key_for_each_safe'
- '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)
};
}
-#define iov_for_each(iov, iter, start) \
- if (iov_iter_type(start) == ITER_IOVEC || \
- iov_iter_type(start) == ITER_KVEC) \
- for (iter = (start); \
- (iter).count && \
- ((iov = iov_iter_iovec(&(iter))), 1); \
- iov_iter_advance(&(iter), (iov).iov_len))
-
size_t iov_iter_copy_from_user_atomic(struct page *page,
struct iov_iter *i, unsigned long offset, size_t bytes);
void iov_iter_advance(struct iov_iter *i, size_t bytes);
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] uio: remove the unused iov_for_each macro
2019-02-04 15:31 [PATCH] uio: remove the unused iov_for_each macro Christoph Hellwig
@ 2019-02-04 15:57 ` Al Viro
0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2019-02-04 15:57 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-fsdevel
On Mon, Feb 04, 2019 at 04:31:04PM +0100, Christoph Hellwig wrote:
> Signed-off-by: Christoph Hellwig <hch@lst.de>
Gladly. It's way overdue - the last remaining user has been gone since
lustre removal.
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-04 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04 15:31 [PATCH] uio: remove the unused iov_for_each macro Christoph Hellwig
2019-02-04 15:57 ` Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).