History

uio: remove the unused iov_for_each macro

Christoph Hellwig committed 7 years ago

Commit 77000bc1 parent bfeffd12 files · +0 −9Browse files

Unified · Split

2 files
  1. .clang-format +0 −1
  2. include/linux/uio.h +0 −8
.clang-format+0−1
@@ -259,7 +259,6 @@ ForEachMacros: · 258 unmodified lines
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'
include/linux/uio.h+0−8
@@ -110,14 +110,6 @@ static inline struct iovec iov_iter_iovec(const struct iov_iter *iter) · 109 unmodified lines
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
121size_t iov_iter_copy_from_user_atomic(struct page *page,113size_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);
123void iov_iter_advance(struct iov_iter *i, size_t bytes);115void iov_iter_advance(struct iov_iter *i, size_t bytes);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t