aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Hazelton <dshadowwolf@gmail.com>2012-10-25 16:37:59 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-25 17:37:53 -0400
commitfc314d0a4a933603f521de343634910a4ed9b37b (patch)
tree74c1b7463081783f568443dd5241c27e347d3e6d /tools
parent59ce8764bdfe8f3c6c02d3215741584dbb43409d (diff)
tools/testing/selftests/epoll/test_epoll.c: fix build
Latest Linus head run of "make selftests" in the tools directory failed with references to undefined variables. Reference was to 'write_thread_data' which is the name of a struct that is being used, not the variable itself. Change reference so it points to the variable. Signed-off-by: Daniel Hazelton <dshadowwolf@gmail.com> Cc: "Paton J. Lewis" <palewis@adobe.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/epoll/test_epoll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/epoll/test_epoll.c b/tools/testing/selftests/epoll/test_epoll.c
index e0fcff1e8331..f7525392ce84 100644
--- a/tools/testing/selftests/epoll/test_epoll.c
+++ b/tools/testing/selftests/epoll/test_epoll.c
@@ -162,14 +162,14 @@ void *write_thread_function(void *function_data)
162 int index; 162 int index;
163 struct write_thread_data *thread_data = 163 struct write_thread_data *thread_data =
164 (struct write_thread_data *)function_data; 164 (struct write_thread_data *)function_data;
165 while (!write_thread_data->stop) 165 while (!thread_data->stop)
166 for (index = 0; 166 for (index = 0;
167 !thread_data->stop && (index < thread_data->n_fds); 167 !thread_data->stop && (index < thread_data->n_fds);
168 ++index) 168 ++index)
169 if ((write(thread_data->fds[index], &data, 1) < 1) && 169 if ((write(thread_data->fds[index], &data, 1) < 1) &&
170 (errno != EAGAIN) && 170 (errno != EAGAIN) &&
171 (errno != EWOULDBLOCK)) { 171 (errno != EWOULDBLOCK)) {
172 write_thread_data->status = errno; 172 thread_data->status = errno;
173 return; 173 return;
174 } 174 }
175} 175}