diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-02 11:04:14 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 10:39:10 +0200 |
commit | 77ae11f63befb7fc41ec256f1fcb72ca7e4160d5 (patch) | |
tree | b226064fc831d9d7e968f41ced643b4bfb214b11 /kernel/trace | |
parent | 38697053fa006411224a1790e2adb8216440ab0f (diff) | |
download | talos-obmc-linux-77ae11f63befb7fc41ec256f1fcb72ca7e4160d5.tar.gz talos-obmc-linux-77ae11f63befb7fc41ec256f1fcb72ca7e4160d5.zip |
ring-buffer: fix build error
fix:
kernel/trace/ring_buffer.c: In function ‘rb_allocate_pages’:
kernel/trace/ring_buffer.c:235: error: ‘cpu’ undeclared (first use in this function)
kernel/trace/ring_buffer.c:235: error: (Each undeclared identifier is reported only once
kernel/trace/ring_buffer.c:235: error: for each function it appears in.)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/ring_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 98145718988d..54a30986493a 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c @@ -232,7 +232,7 @@ static int rb_allocate_pages(struct ring_buffer_per_cpu *cpu_buffer, for (i = 0; i < nr_pages; i++) { page = kzalloc_node(ALIGN(sizeof(*page), cache_line_size()), - GFP_KERNEL, cpu_to_node(cpu)); + GFP_KERNEL, cpu_to_node(i)); if (!page) goto free_pages; list_add(&page->list, &pages); |