diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-10-26 17:21:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:08 -0400 |
commit | 7a837d1bb7cb2bceb093ec639068626586a89234 (patch) | |
tree | ed81476c9c0af6cfbba4e36d4ac4b52cd0f1c88c /arch | |
parent | ece0e2b6406a995c371e0311190631ea34ad851a (diff) |
perf, x86: Fix up kmap_atomic() type
Now that the KM_type stuff is history, clean up the compiler warning.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: David Miller <davem@davemloft.net>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c index fe73c1844a9a..c1e8c7a51164 100644 --- a/arch/x86/kernel/cpu/perf_event.c +++ b/arch/x86/kernel/cpu/perf_event.c | |||
@@ -49,7 +49,6 @@ static unsigned long | |||
49 | copy_from_user_nmi(void *to, const void __user *from, unsigned long n) | 49 | copy_from_user_nmi(void *to, const void __user *from, unsigned long n) |
50 | { | 50 | { |
51 | unsigned long offset, addr = (unsigned long)from; | 51 | unsigned long offset, addr = (unsigned long)from; |
52 | int type = in_nmi() ? KM_NMI : KM_IRQ0; | ||
53 | unsigned long size, len = 0; | 52 | unsigned long size, len = 0; |
54 | struct page *page; | 53 | struct page *page; |
55 | void *map; | 54 | void *map; |
@@ -63,9 +62,9 @@ copy_from_user_nmi(void *to, const void __user *from, unsigned long n) | |||
63 | offset = addr & (PAGE_SIZE - 1); | 62 | offset = addr & (PAGE_SIZE - 1); |
64 | size = min(PAGE_SIZE - offset, n - len); | 63 | size = min(PAGE_SIZE - offset, n - len); |
65 | 64 | ||
66 | map = kmap_atomic(page, type); | 65 | map = kmap_atomic(page); |
67 | memcpy(to, map+offset, size); | 66 | memcpy(to, map+offset, size); |
68 | kunmap_atomic(map, type); | 67 | kunmap_atomic(map); |
69 | put_page(page); | 68 | put_page(page); |
70 | 69 | ||
71 | len += size; | 70 | len += size; |