aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-25 19:05:57 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-25 19:05:57 -0400
commit2ab3f29dddfb444c9fcc0a2f3a56ed4bdba41969 (patch)
treeb1999129c781fbd524c921c4ebfde029a48cca17 /tools
parentb1e4279e4ef5549bf6ebf8f6f17dd26f0af8e8a2 (diff)
parent12176503366885edd542389eed3aaf94be163fdb (diff)
Merge branch 'akpm' (Andrew's fixes)
Merge misc fixes from Andrew Morton: "18 total. 15 fixes and some updates to a device_cgroup patchset which bring it up to date with the version which I should have merged in the first place." * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (18 patches) fs/compat_ioctl.c: VIDEO_SET_SPU_PALETTE missing error check gen_init_cpio: avoid stack overflow when expanding drivers/rtc/rtc-imxdi.c: add missing spin lock initialization mm, numa: avoid setting zone_reclaim_mode unless a node is sufficiently distant pidns: limit the nesting depth of pid namespaces drivers/dma/dw_dmac: make driver's endianness configurable mm/mmu_notifier: allocate mmu_notifier in advance tools/testing/selftests/epoll/test_epoll.c: fix build UAPI: fix tools/vm/page-types.c mm/page_alloc.c:alloc_contig_range(): return early for err path rbtree: include linux/compiler.h for definition of __always_inline genalloc: stop crashing the system when destroying a pool backlight: ili9320: add missing SPI dependency device_cgroup: add proper checking when changing default behavior device_cgroup: stop using simple_strtoul() device_cgroup: rename deny_all to behavior cgroup: fix invalid rcu dereference mm: fix XFS oops due to dirty pages without buffers on s390
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/epoll/test_epoll.c4
-rw-r--r--tools/vm/page-types.c2
2 files changed, 3 insertions, 3 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}
diff --git a/tools/vm/page-types.c b/tools/vm/page-types.c
index cd1b03e80899..b76edf2f8333 100644
--- a/tools/vm/page-types.c
+++ b/tools/vm/page-types.c
@@ -35,7 +35,7 @@
35#include <sys/mount.h> 35#include <sys/mount.h>
36#include <sys/statfs.h> 36#include <sys/statfs.h>
37#include "../../include/uapi/linux/magic.h" 37#include "../../include/uapi/linux/magic.h"
38#include "../../include/linux/kernel-page-flags.h" 38#include "../../include/uapi/linux/kernel-page-flags.h"
39 39
40 40
41#ifndef MAX_PATH 41#ifndef MAX_PATH